Closed
Description
James Howe opened SPR-14343 and commented
Unlike other annotations such as @Repository
or @Secured
, the caching annotations are ignored when making calls to a CGLib proxy via the interface in which they are defined.
See attached project for details.
Currently the test fails, but if @EnableAspectJAutoProxy(proxyTargetClass = true)
is removed then it passes.
Affects: 4.2.5
Attachments:
- example.7z (5.68 kB)
Issue Links:
- CGLIB proxies should still consider @Transactional annotations on interface methods [SPR-14322] #18894 CGLIB proxies should still consider
@Transactional
annotations on interface methods - Reliably detect @Cacheable declarations on interface methods [SPR-15271] #19836 Reliably detect
@Cacheable
declarations on interface methods