From e1bd13d3d601a3746a97fa13821dbcde1c0e8ae9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Mon, 25 Sep 2023 15:16:00 +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-25001 --- .../modules/ROOT/pages/core/beans/factory-scopes.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework-docs/modules/ROOT/pages/core/beans/factory-scopes.adoc b/framework-docs/modules/ROOT/pages/core/beans/factory-scopes.adoc index 261f8d1e61d..8243d755d1e 100644 --- a/framework-docs/modules/ROOT/pages/core/beans/factory-scopes.adoc +++ b/framework-docs/modules/ROOT/pages/core/beans/factory-scopes.adoc @@ -514,8 +514,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