Closed
Description
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
- 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:
- Introduce bootstrap strategy in the TestContext framework [SPR-9955] #14588 Introduce bootstrap strategy in the TestContext framework ("is depended on by")
- Introduce aliases for 'value' annotation attributes [SPR-11393] #16020 Introduce aliases for 'value' annotation attributes
- MetaAnnotationUtils should support arbitrary levels of meta-annotations [SPR-11470] #16095 MetaAnnotationUtils should support arbitrary levels of meta-annotations
- TypeDescriptor should support arbitrary levels of meta-annotations [SPR-12793] #17390 TypeDescriptor should support arbitrary levels of meta-annotations
Referenced from: commits 42a3634