Open
Description
openedon Oct 8, 2024
Overview
The regression reported in #4054 was likely caused by confusion about the semantics of AnnotationSupport.isAnnotated()
.
Although one might assume that isAnnotated()
would return true
if the given annotation type is present as a repeatable annotation, it does not actually find repeatable annotations.
Instead, one must use one of the findRepeatableAnnotations()
variants and check if the returned list is not empty to reliably determine if an element is annotated with a repeatable annotation.
Related Issues
Deliverables
- Update the Javadoc for both
AnnotationSupport.isAnnotated()
variants to reflect this. - Update the User Guide documentation for
AnnotationSupport
to reflect this, if applicable. - Update the Javadoc for
AnnotatedElementContext.isAnnotated()
to reflect this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment