Skip to content

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

Closed

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

Activity

  1. added
    type: regression
    type: enhancement
    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: enhancementtype: regression

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions