Skip to content

AnnotationUtils.findAnnotation() should support arbitrary levels of meta-annotations [SPR-11448] #16074

Closed
@spring-projects-issues

Description

@spring-projects-issues

Sam Brannen opened SPR-11448 and commented

Status Quo

AnnotationUtils.findAnnotation(Class, Class) claims to recursively search through all declared annotations; however, only one level of annotations is supported by the algorithm.

In other words, meta-annotations on meta-annotations will never be found.

Deliverables

  1. Alter the search algorithm in AnnotationUtils.findAnnotation(Class, Class) so that arbitrary levels of meta-annotations (e.g., meta-annotations on meta-annotations) are supported.

Affects: 3.0 GA

Issue Links:

Referenced from: commits 42a3634

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions