Skip to content

AnnotatedElementUtils fails to find type-level annotations on interfaces [SPR-12944] #17537

Closed

Description

@spring-projects-issues

Sam Brannen opened SPR-12944 and commented


Issue Links:

Referenced from: commits 7f0f04d

Activity

  1. spring-projects-issues commented on Apr 22, 2015

    @spring-projects-issues
    CollaboratorAuthor

    Sam Brannen commented

    Fixed as described in GitHub commit 7f0f04d:

    Support annotations on interfaces in AnnotatedElementUtils

    This commit introduces support in AnnotatedElementUtils for finding
    annotations declared on interfaces at the type level.

    NB: this commit does not include support for finding annotations
    declared on interface methods.

    In order to maintain backward compatibility with @Transactional
    annotation attribute processing, a new getAnnotationAttributes() method
    has been added to AnnotatedElementUtils that provides a flag to control
    whether interfaces should be searched.
    SpringTransactionAnnotationParser and JtaTransactionAnnotationParser
    have been updated accordingly to ensure that interfaces are not
    unintentionally searched in the @Transactional resolution process.

    This commit also introduces additional tests and updates TODOs for
    #17335.

  2. added
    type: bug
    in: core
    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: coretype: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions