Skip to content

Reliably detect @Cacheable declarations on interface methods [SPR-15271] #19836

Closed
@spring-projects-issues

Description

@spring-projects-issues

Stéphane Nicoll opened SPR-15271 and commented

This was originally raised in this spring boot issue. Debugging the code, it looks like AnnotatedElementUtils#getAllMergedAnnotations doesn't find the requested annotation when it's defined in a interface method.

I've added a unit test that fails (ignored on master) though I am not 100% sure that it actually reproduces the problem.

There is a sample that definitely does here


Affects: 4.3.4

Issue Links:

0 votes, 5 watchers

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementtype: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions