You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently AnnotatedTypeMetadata has some fairly inconsistent rules around java.lang annotations.
With StandardAnnotationMetadata for example hasAnnotation will support java.lang annotations, where as isAnnotated delegates AnnotatedElementUtils which will filter them.
The ASM AnnotationMetadataReadingVisitor class provides parity by using AnnotationUtils.isInJavaLangAnnotationPackage(annotationName) for isAnnotated.
Some work on removing the overhead of java.lang processing was implemented in #17580 but I think we can go further and simply always filter java.lang annotations. Doing this will also help simplify the implementation for #22884
The text was updated successfully, but these errors were encountered:
Update `StandardAnnotationMetadata` and `AnnotationMetadataReadingVisitor`
so that `java.lang.annotation` annotations are consistently skipped.
Closesspring-projectsgh-22885
Update `StandardAnnotationMetadata` and `AnnotationMetadataReadingVisitor`
so that `java.lang.annotation` annotations are consistently skipped.
Closesspring-projectsgh-22885
philwebb
added a commit
to philwebb/spring-framework
that referenced
this issue
May 6, 2019
Update `StandardAnnotationMetadata` and `AnnotationMetadataReadingVisitor`
so that `java.lang.annotation` annotations are consistently skipped.
Closesspring-projectsgh-22885
Currently
AnnotatedTypeMetadata
has some fairly inconsistent rules aroundjava.lang
annotations.With
StandardAnnotationMetadata
for examplehasAnnotation
will supportjava.lang
annotations, where asisAnnotated
delegatesAnnotatedElementUtils
which will filter them.The ASM
AnnotationMetadataReadingVisitor
class provides parity by usingAnnotationUtils.isInJavaLangAnnotationPackage(annotationName)
forisAnnotated
.Some work on removing the overhead of
java.lang
processing was implemented in #17580 but I think we can go further and simply always filter java.lang annotations. Doing this will also help simplify the implementation for #22884The text was updated successfully, but these errors were encountered: