Closed
Description
Affects: 5.2.0.BUILD-SNAPSHOT
After changes introduced in #22586, AnnotationsScanner.getDeclaredAnnotation(source, annotationType)
method can't find org.springframework.lang.Nullable
anymore because it gets filtered out by this filter:
static final AnnotationFilter PLAIN = packages("java.lang",
"org.springframework.lang");
from org.springframework.core.annotation.AnnotationFilter
Is that intentional? If so, what should be used instead?
Jus to clarify, we use AnnotatedElementUtils.findMergedAnnotation
, but internally it relies on AnnotationsScanner.getDeclaredAnnotation