Skip to content
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

CglibTest fails on OpenJDK 13 EA. #241

Closed
garydgregory opened this issue Mar 22, 2019 · 14 comments
Closed

CglibTest fails on OpenJDK 13 EA. #241

garydgregory opened this issue Mar 22, 2019 · 14 comments
Assignees
Milestone

Comments

@garydgregory
Copy link

garydgregory commented Mar 22, 2019

CglibTest fails on OpenJDK 13 EA:

[ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.018 s <<< FAILURE! - in org.easymock.tests.CglibTest
[ERROR] testJava8(org.easymock.tests.CglibTest)  Time elapsed: 0.01 s  <<< ERROR!
java.lang.IllegalArgumentException: Unsupported class file major version 57
        at org.easymock.tests.CglibTest.testJava8(CglibTest.java:80)
openjdk version "13-ea" 2019-09-17
OpenJDK Runtime Environment (build 13-ea+12)
OpenJDK 64-Bit Server VM (build 13-ea+12, mixed mode, sharing)
openjdk version "13-ea" 2019-09-17
OpenJDK Runtime Environment (build 13-ea+13)
OpenJDK 64-Bit Server VM (build 13-ea+13, mixed mode, sharing)
@henri-tremblay
Copy link
Contributor

Interesting. Can you give me the full stack trace?

@garydgregory
Copy link
Author

Here you go:

[ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.007 s <<< FAILURE! - in org.easymock.tests.CglibTest
[ERROR] testJava8(org.easymock.tests.CglibTest)  Time elapsed: 0.001 s  <<< ERROR!
java.lang.IllegalArgumentException: Unsupported class file major version 57
        at org.objectweb.asm.ClassReader.<init>(ClassReader.java:184)
        at org.objectweb.asm.ClassReader.<init>(ClassReader.java:166)
        at org.objectweb.asm.ClassReader.<init>(ClassReader.java:152)
        at org.objectweb.asm.ClassReader.<init>(ClassReader.java:273)
        at net.sf.cglib.core.DuplicatesPredicate.<init>(DuplicatesPredicate.java:93)
        at net.sf.cglib.proxy.Enhancer.getMethods(Enhancer.java:557)
        at net.sf.cglib.proxy.Enhancer.generateClass(Enhancer.java:575)
        at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
        at net.sf.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:329)
        at net.sf.cglib.proxy.Enhancer.generate(Enhancer.java:492)
        at net.sf.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:93)
        at net.sf.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:91)
        at net.sf.cglib.core.internal.LoadingCache$2.call(LoadingCache.java:54)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at net.sf.cglib.core.internal.LoadingCache.createEntry(LoadingCache.java:61)
        at net.sf.cglib.core.internal.LoadingCache.get(LoadingCache.java:34)
        at net.sf.cglib.core.AbstractClassGenerator$ClassLoaderData.get(AbstractClassGenerator.java:116)
        at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:291)
        at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:480)
        at net.sf.cglib.proxy.Enhancer.createClass(Enhancer.java:337)
        at org.easymock.internal.ClassProxyFactory.createProxy(ClassProxyFactory.java:175)
        at org.easymock.internal.MocksControl.createMock(MocksControl.java:98)
        at org.easymock.internal.MocksControl.createMock(MocksControl.java:73)
        at org.easymock.IMocksControl.mock(IMocksControl.java:44)
        at org.easymock.EasyMock.mock(EasyMock.java:70)
        at org.easymock.EasyMock.createMock(EasyMock.java:322)
        at org.easymock.tests.CglibTest.testJava8(CglibTest.java:80)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:567)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
        at org.junit.runners.Suite.runChild(Suite.java:128)
        at org.junit.runners.Suite.runChild(Suite.java:27)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
        at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55)
        at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137)
        at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107)
        at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83)
        at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75)
        at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158)
        at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383)
        at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
        at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)

@henri-tremblay
Copy link
Contributor

henri-tremblay commented Mar 23, 2019 via email

@garydgregory
Copy link
Author

It works with ASM 7.1. Please see #242

@henri-tremblay
Copy link
Contributor

henri-tremblay commented Mar 23, 2019 via email

@garydgregory
Copy link
Author

@henri-tremblay
Copy link
Contributor

henri-tremblay commented Mar 24, 2019 via email

@garydgregory
Copy link
Author

garydgregory commented Mar 24, 2019 via email

@garydgregory
Copy link
Author

garydgregory commented Mar 24, 2019

Also in the stack trace I posted, note that the exception is thrown from EasyMock itself.

@henri-tremblay henri-tremblay self-assigned this Mar 25, 2019
@henri-tremblay henri-tremblay added this to the 4.1 milestone Mar 25, 2019
@henri-tremblay
Copy link
Contributor

Closed by #242

@henri-tremblay
Copy link
Contributor

@garydgregory Next version wasn't planned soon but since Java 13 is broken, it shouldn't be that far.

@anthraxx
Copy link

anthraxx commented Oct 9, 2019

@henri-tremblay ping on a new release, this is hitting general setups nowadays. can we get a release?

@henri-tremblay
Copy link
Contributor

Objenesis was released. I was expecting this week but got overwhelmed. But ASAP. Sorry for the delay

@anthraxx
Copy link

anthraxx commented Oct 9, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants