Closed
Description
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:
- Cache annotation lookup in 4.3 finds more annotations than in 4.2 [SPR-14801] #19367 Cache annotation lookup in 4.3 finds more annotations than in 4.2
- Caching annotation on interface are ignored when cglib proxies are used [SPR-14343] #18915 Caching annotation on interface are ignored when cglib proxies are used
- CGLIB proxies should still consider @Transactional annotations on interface methods [SPR-14322] #18894 CGLIB proxies should still consider
@Transactional
annotations on interface methods
0 votes, 5 watchers