Skip to content

Caching annotation on interface are ignored when cglib proxies are used [SPR-14343] #18915

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
spring-projects-issues opened this issue Jun 8, 2016 · 2 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Jun 8, 2016

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:

@spring-projects-issues
Copy link
Collaborator Author

Max Dube commented

Seems to be fixed in boot 1.4.0-SNAPSHOT version.

Can't reproduce with this version.

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

Alright, I'll mark this as resolved as of 4.3 GA then (which is what Boot 1.4 snapshots are using).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants