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
MetaAnnotationUtils should support arbitrary levels of meta-annotations [SPR-11470] #16095
The findAnnotationDescriptor() and findAnnotationDescriptorForTypes() methods in MetaAnnotationUtils currently only support 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.
Deliverables
Alter the search algorithms used in MetaAnnotationUtils so that arbitrary levels of meta-annotations (e.g., meta-annotations on meta-annotations) are supported for test-related annotations.
Support arbitrary meta-annotation levels in the TCF
Prior to this commit, the findAnnotationDescriptor() and
findAnnotationDescriptorForTypes() methods in MetaAnnotationUtils only
supported a single level of meta-annotations. In particular, this kept
the following annotations from being used as meta-annotations on
meta-annotations:
@ContextConfiguration
@ContextHierarchy
@ActiveProfiles
@TestExecutionListeners
This commit alters the search algorithms used in MetaAnnotationUtils so
that arbitrary levels of meta-annotations are now supported for the
aforementioned test-related annotations.
Activity
spring-projects-issues commentedon Feb 22, 2014
Sam Brannen commented
This issue is closely related to #16074 but specific to
spring-test.spring-projects-issues commentedon Feb 22, 2014
Sam Brannen commented
Completed as described in the comments for GitHub commit f895096: