Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
spring-projects-issues opened this issue Feb 20, 2017 · 0 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement type: regression A bug that is also a regression
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Feb 20, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement type: regression A bug that is also a regression
Projects
None yet
Development

No branches or pull requests

2 participants