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
This commit is contained in:
Stéphane Nicoll
2023-09-25 15:26:42 +02:00
parent 2b4c1e265c
commit 3c59c2a275

View File

@@ -3156,8 +3156,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