From 3c59c2a2759d2c154d5c221943fbf6cd743d2149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Mon, 25 Sep 2023 15:26:42 +0200 Subject: [PATCH] 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 --- src/docs/asciidoc/core/core-beans.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/docs/asciidoc/core/core-beans.adoc b/src/docs/asciidoc/core/core-beans.adoc index e020f6290b..2ae891afdc 100644 --- a/src/docs/asciidoc/core/core-beans.adoc +++ b/src/docs/asciidoc/core/core-beans.adoc @@ -3156,8 +3156,8 @@ the `` 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