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
I've noticed that AnnotationMetadataReadingVisitor.getMetaAnnotationTypes(String) will return null rather than the documented empty Set in two scenarios:
getMetaAnnotationTypes is called with the name of an annotation that is not present
getMetaAnnotationTypes is called with the name of an annotation that is present but that is not on the classpath
I've attached a small sample that hopefully illustrates both. It tests with Framework 5.1 snapshots but I believe that 5.0 is also affected and perhaps 4.3.x too.
Indeed, getMetaAnnotationTypes is not meant to ever return null... StandardAnnotationMetadata adheres to that, so AnnotationMetadataReadingVisitor simply returns an empty Set in those cases as well now.
I'll backport this to 5.0.8 but intend to leave 4.3.x as-is unless there is an immediate issue with it.
Andy Wilkinson opened SPR-17046 and commented
I've noticed that
AnnotationMetadataReadingVisitor.getMetaAnnotationTypes(String)
will returnnull
rather than the documented emptySet
in two scenarios:I've attached a small sample that hopefully illustrates both. It tests with Framework 5.1 snapshots but I believe that 5.0 is also affected and perhaps 4.3.x too.
Affects: 5.0.7
Attachments:
Issue Links:
The text was updated successfully, but these errors were encountered: