Skip to content

MetaAnnotationUtils should support arbitrary levels of meta-annotations [SPR-11470] #16095

Closed

Description

@spring-projects-issues

Sam Brannen opened SPR-11470 and commented

Overview

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

  1. 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.

Affects: 4.0 GA

Issue Links:

Referenced from: commits f895096

Activity

  1. spring-projects-issues commented on Feb 22, 2014

    @spring-projects-issues
    CollaboratorAuthor

    Sam Brannen commented

    This issue is closely related to #16074 but specific to spring-test.

  2. spring-projects-issues commented on Feb 22, 2014

    @spring-projects-issues
    CollaboratorAuthor

    Sam Brannen commented

    Completed as described in the comments for GitHub commit f895096:

    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.

  3. added
    in: test
    type: enhancement
    on Jan 11, 2019
  4. added this to the 4.0.3 milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: testtype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions