Reliably detect @Cacheable declarations on interface methods [SPR-15271] #19836
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
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:
@Transactional
annotations on interface methods0 votes, 5 watchers
The text was updated successfully, but these errors were encountered: