Incorrect reference information about CGLIB supported method visibility #25001
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: documentation
A documentation task
Milestone
Hi,
Please update the documentation to reflect the actual behavior:
In case of Proxies create by CGLIB it is stated that:
But this is not true, CGLIB proxies created by Spring-AOP mechanism can in fact intercept non-public methods too (protected and package-default). Probably this claim should be better off as a "recommendation".
This claim is found under: PDF Spring Framework Reference Documentation 5.0.0.M1 page 55
Also under current reference (from today):
https://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#beans-factory-scopes-other-injection
Similar claim occurrence:
I have come across this while studying for the Spring Core Certification and tested it myself.
See also other opinions: https://stackoverflow.com/questions/53717707/spring-cglib-proxies-intercept-only-public-method-calls
Best regards,
Georgian Dumitrache
The text was updated successfully, but these errors were encountered: