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
Help debugging ClassFormatError #116
Comments
|
I guess the faulty method is
would the error be caused by 3. and 4. ? |
|
I checked the reproduction and the problem is cglib proxying another cglib proxied class: org.assertj.core.api.ObjectArrayAssert$$EnhancerByCGLIB$$30eb9e74$$EnhancerByCGLIB$$ffbccd53 extends org.assertj.core.api.ObjectArrayAssert$$EnhancerByCGLIB$$30eb9e74. This causes a duplicate registration of the callback cglib-internal methods whose names are not randomized. |
|
thanks @raphw! |
|
It seems byte-buddy handles that case correctly 😸 |
|
Byte Buddy is based on a different model then cglib. Byte Buddy adds none of its own types into proxy classes to avoid this problem but also solve issues like OSGi (and now Java 9 module) boundary violations. This is why this should not be an issue there. |
Hi,
I'm struggling debugging this issue assertj/assertj#1146.
Is there a way to find out which is the duplicate method mentioned in the exception ?
Thanks in advance
The text was updated successfully, but these errors were encountered: