Document CGLIB restriction with methods that are effectively private

Closes gh-28973
This commit is contained in:
Stéphane Nicoll 2023-12-22 12:39:35 +01:00
parent cd11219fa7
commit 5caf714ff4
1 changed files with 2 additions and 0 deletions

View File

@ -291,6 +291,8 @@ to consider:
* `final` classes cannot be proxied, because they cannot be extended.
* `final` methods cannot be advised, because they cannot be overridden.
* `private` methods cannot be advised, because they cannot be overridden.
* Methods that are not visible, typically package private methods in a parent class
from a different package, cannot be advised because they are effectively private.
NOTE: There is no need to add CGLIB to your classpath. CGLIB is repackaged and included
in the `spring-core` JAR. In other words, CGLIB-based AOP works "out of the box", as do