Robin Wang opened SPR-16354 and commented
CglibAopProxy#getCallbacks creates FixedChainStaticTargetInterceptor for all methods of a target that is static when the advice chain is frozen which is unnecessary for methods with no advice. This is already mentioned in the TODO comment at line 329. According to CglibAopProxy.ProxyCallbackFilter#accept, when advice chain is frozen, methods with no advice have no possibility to choose a FixedChainStaticTargetInterceptor as their interceptor. So we can implement this optimization to improve memory efficiency.
Referenced from: pull request https://github.com/spring-projects/spring-framework/pull/1639
Comment From: snicoll
@MottoX this issue is quite old and I can see that your PR has been automatically closed when we renamed the main
branch. The PR doesn't look very actionable to me as it doesn't have tests. Can you provide some additional information and illustrates how this change would be used in a tests so that we can make a more informed call. Thanks!
Comment From: spring-projects-issues
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Comment From: spring-projects-issues
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.