Skip to content

Commit 3c59c2a

Browse files
committed
Fix note on CGLIB supported method visibility
CGLIB do support package-private and protected methods now so the note in the reference doc should be changed accordingly. Closes gh-31311
1 parent 2b4c1e2 commit 3c59c2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/docs/asciidoc/core/core-beans.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3156,8 +3156,8 @@ the `<aop:scoped-proxy/>` element, a CGLIB-based class proxy is created.
31563156

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

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

0 commit comments

Comments
 (0)