Skip to content

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

Closed

Description

@spring-projects-issues

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:

Activity

  1. spring-projects-issues commented on Jun 17, 2016

    @spring-projects-issues
    CollaboratorAuthor

    Max Dube commented

    Seems to be fixed in boot 1.4.0-SNAPSHOT version.

    Can't reproduce with this version.

  2. spring-projects-issues commented on Jun 17, 2016

    @spring-projects-issues
    CollaboratorAuthor

    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).

  3. added
    type: enhancement
    in: core
    on Jan 11, 2019
  4. added this to the 4.3 GA milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: coretype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions