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
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
Alter the search algorithm used in TypeDescriptor.getAnnotation() so that arbitrary levels of meta-annotations are supported.
Sam Brannen opened SPR-12793 and commented
Status Quo
The
getAnnotation()method inTypeDescriptorcurrently 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,
@NumberFormatand@DateTimeFormatare supported as meta-annotations but not as meta-meta-annotations.Deliverables
TypeDescriptor.getAnnotation()so that arbitrary levels of meta-annotations are supported.Affects: 3.2 GA
Issue Links:
@NumberFormatas a meta-annotation ("depends on")Referenced from: commits 04d6afe