-
-
Notifications
You must be signed in to change notification settings - Fork 314
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
Comments
Interesting. Can you give me the full stack trace? |
Here you go:
|
Ok. It's coming from ASM. It doesn't support Java 13. So until it does (it
shouldn't take long), there's nothing we can do on our side.
…On Sat, 23 Mar 2019 at 09:00, Gary Gregory ***@***.***> wrote:
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)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#241 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABKRM2R3HNa3gvpqmTUHkKi2Rr8i47hoks5vZiVWgaJpZM4cEUyA>
.
|
It works with ASM 7.1. Please see #242 |
EasyMock master is on 7.1. Which version are you using?
…On Sat, 23 Mar 2019 at 11:01, Gary Gregory ***@***.***> wrote:
It works with ASM 7.1. Please see #242
<#242>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#241 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABKRM_pGUvtDUiY1Dcukz3nSW2BOF619ks5vZkG8gaJpZM4cEUyA>
.
|
You are right. It's local code (doh!)
…On Sat, 23 Mar 2019 at 19:06, Gary Gregory ***@***.***> wrote:
I see 7.0 here:
https://github.com/easymock/easymock/blob/master/core/pom.xml#L50
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#241 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABKRM_pmx8ZLMuDWoRu5cXFLXY4IDDkqks5vZrOHgaJpZM4cEUyA>
.
|
May we get a release with the updated dep?
Gary
…On Sat, Mar 23, 2019, 22:49 Henri Tremblay ***@***.***> wrote:
You are right. It's local code (doh!)
On Sat, 23 Mar 2019 at 19:06, Gary Gregory ***@***.***>
wrote:
> I see 7.0 here:
> https://github.com/easymock/easymock/blob/master/core/pom.xml#L50
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#241 (comment)
>,
> or mute the thread
> <
https://github.com/notifications/unsubscribe-auth/ABKRM_pmx8ZLMuDWoRu5cXFLXY4IDDkqks5vZrOHgaJpZM4cEUyA
>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#241 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABIfN3lzqt5Cyb3P5oX2mrDsZ0ANkB_-ks5vZuehgaJpZM4cEUyA>
.
|
Also in the stack trace I posted, note that the exception is thrown from EasyMock itself. |
Closed by #242 |
@garydgregory Next version wasn't planned soon but since Java 13 is broken, it shouldn't be that far. |
@henri-tremblay ping on a new release, this is hitting general setups nowadays. can we get a release? |
Objenesis was released. I was expecting this week but got overwhelmed. But ASAP. Sorry for the delay |
Cool, thanks for the fast response
|
CglibTest fails on OpenJDK 13 EA:
The text was updated successfully, but these errors were encountered: