Skip to content

AnnotatedElementUtils fails to find annotations on abstract, bridge, or interface methods [SPR-12738] #17335

Closed
@spring-projects-issues

Description

@spring-projects-issues

Rossen Stoyanchev opened SPR-12738 and commented

Overview

This was encountered while adding support for @RequestMapping as meta annotation. Following a change from AnnotationUtils.findAnnotation to AnnotatedElementUtils.getAnnotationAttributes, there are failing integration tests with controller hierarchies.


Analysis / Known Issues

  1. AnnotatedElementUtils does not currently support interfaces or bridge methods in its search algorithms.

Deliverables

  1. Support abstract methods in AnnotatedElementUtils.
  2. Support interface methods in AnnotatedElementUtils.
  3. Support bridge methods in AnnotatedElementUtils.
  4. Support bridged methods in AnnotatedElementUtils.
  5. Search for TODOs in AnnotatedElementUtilsTests and re-instate @Ignore'd tests.
  6. Search for TODOs in TransactionalEventListenerTests and re-instate @Ignore'd tests.

Affects: 4.1.5

Issue Links:

Referenced from: commits 7f0f04d, 91e46cf, bccd59e, 8ece1b1, ad6bea1, e0d2dbd, b94c6fd

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions