Skip to content

Commit

Permalink
Fix note on CGLIB supported method visibility
Browse files Browse the repository at this point in the history
CGLIB do support package-private and protected methods now so the
note in the reference doc should be changed accordingly.

Closes spring-projectsgh-25001
  • Loading branch information
snicoll committed Sep 25, 2023
1 parent 08237da commit e1bd13d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,8 @@ the `<aop:scoped-proxy/>` element, a CGLIB-based class proxy is created.

[NOTE]
====
CGLIB proxies intercept only public method calls! Do not call non-public methods
on such a proxy. They are not delegated to the actual scoped target object.
CGLIB proxies do not intercept private methods. Attempting to call a private method
on such a proxy will not delegate to the actual scoped target object.
====

Alternatively, you can configure the Spring container to create standard JDK
Expand Down

0 comments on commit e1bd13d

Please sign in to comment.