Skip to content

getDeclaredAnnotation can't find Nullable #22663

Closed
@dmitry-s

Description

@dmitry-s

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions