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
{{ message }}
Repository navigation
TypeDescriptor should support arbitrary levels of meta-annotations [SPR-12793] #17390
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.
Support arbitrary levels of meta-annotations in TypeDescriptor
Prior to this commit, the getAnnotation() method in TypeDescriptor
only supported a single level of meta-annotations. In other words, the
annotation hierarchy would not be exhaustively searched.
This commit provides support for arbitrary levels of meta-annotations
in TypeDescriptor by delegating to AnnotationUtils.findAnnotation()
within TypeDescriptor.getAnnotation().
Activity
spring-projects-issues commentedon May 8, 2015
Sam Brannen commented
Resolved as described in GitHub commit 04d6afe: