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
Extracting String value using AutoCloseableSoftAssertion throws java.lang.ClassFormatError #1146
Comments
@mavinkurve thanks for reporting this, which version are you using? |
This is really hard to debug which poor exception information which does not tell what is the duplicated method :( |
We started noticing this issue in version 3.9.0. It’s been working perfectly until the upgrade. |
Moving to byte buddy seems to resolve this issue #1093 but this comes with other challenges. |
Could be the same issue as https://stackoverflow.com/questions/39670735/classformaterror-duplicate-method-namesignature-from-enhancerbyspringcglib where Rafael Winterhalter says it is a cglib bug. It could also be related to our shading of cglib, see jdbi/jdbi#26 for a similar issue. @mavinkurve Which version were you using before upgrading to 3.9.0? |
We were using 3.8.0 and I confirmed by downgrading that this issue doesn’t
repo there.
…On Sun, Jan 7, 2018 at 10:32 AM Pascal Schumacher ***@***.***> wrote:
Could be the same issue as
https://stackoverflow.com/questions/39670735/classformaterror-duplicate-method-namesignature-from-enhancerbyspringcglib
where Rafael Winterhalter says it is a cglib bug.
It could also be related to our shading of cglib, see jdbi/jdbi#26
<jdbi/jdbi#26> for a similar issue.
@mavinkurve <https://github.com/mavinkurve> Which version were you using
before upgrading to 3.9.0?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1146 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhhNyhDUhYDGovyv2JYvZV7f220eTsGiks5tIQ3DgaJpZM4RUwe9>
.
|
The exceptions occurs in |
We are moving to byte buddy so this one is going to be fixed. |
Thanks everyone.
…On Sat, Jan 13, 2018 at 1:39 AM Joel Costigliola ***@***.***> wrote:
We are moving to byte buddy so this one is going to be fixed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1146 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhhNytxtNSUnFFzJ56X00LoZELhF31IUks5tKHnrgaJpZM4RUwe9>
.
|
@joel-costigliola I think that with you merging #1093 this one is resolved. |
Summary
Extracting string values from map throws following exception:
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.assertj.core.internal.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:459)
at org.assertj.core.internal.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:336)
... 39 more
Caused by: java.lang.ClassFormatError: Duplicate method name&signature in class file org/assertj/core/api/ObjectArrayAssert$$EnhancerByCGLIB$$2a693b8d$$EnhancerByCGLIB$$e518c7e6
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
... 45 more
Example
Java 8 specific ?
No
master
branch2.x
branchThe text was updated successfully, but these errors were encountered: