-
Notifications
You must be signed in to change notification settings - Fork 885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cglib Could not support nested proxy? #135
Comments
I noticed that there is a similar problem at https://github.com/spring-projects/spring-framework. Perhaps we can refer to this issue to find more context about the bug (e.g. the library version since they share |
@SylviaLee89 Not really similar. Illegal method is not the same as duplicate method. AFAICT from looking at the error/trace this issue comes up when proxying a proxy, because the proxy code adds a method named newInstance() to the proxy but it already exists if the original was already proxy. I hit this trying to fudge around the way EasyMock handles Interfaces with default methods to solve an issue in EasierMock ( fsparv/EasierMock#2 ).
|
FWIW in my case I can get past this particular exception because Easymock shades in it's own copy of cglib, and if I depend on cglib original then the method signatures don't overlap because of differing packages for Callback. Other problems arise, but it confirms the nature of the problem. |
Env: JDK1.8
Cglib:Spring 3.2.5
Excetption:
Demo:
please tell me why? thank you very much.
The text was updated successfully, but these errors were encountered: