Skip to content

TypeDescriptor should support arbitrary levels of meta-annotations [SPR-12793] #17390

Closed
@spring-projects-issues

Description

@spring-projects-issues

Sam Brannen opened SPR-12793 and commented

Status Quo

The getAnnotation() method in TypeDescriptor currently only supports a single level of meta-annotations.

In other words, meta-annotations on meta-annotations will never be found, and this does not align with Spring's standard support for meta-annotations with arbitrary levels.

For example, @NumberFormat and @DateTimeFormat are supported as meta-annotations but not as meta-meta-annotations.

Deliverables

  1. Alter the search algorithm used in TypeDescriptor.getAnnotation() so that arbitrary levels of meta-annotations are supported.

Affects: 3.2 GA

Issue Links:

Referenced from: commits 04d6afe

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