Caching annotation on interface are ignored when cglib proxies are used [SPR-14343] #18915
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Uh oh!
There was an error while loading. Please reload this page.
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:
Issue Links:
@Transactional
annotations on interface methods@Cacheable
declarations on interface methodsThe text was updated successfully, but these errors were encountered: