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

Test errors with Java 10 #59

Closed
ebourg opened this issue May 16, 2018 · 2 comments
Closed

Test errors with Java 10 #59

ebourg opened this issue May 16, 2018 · 2 comments
Assignees
Labels
Milestone

Comments

@ebourg
Copy link

ebourg commented May 16, 2018

Hi,

There are two test errors with Java 10:

Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.053 sec <<< FAILURE! - in org.objenesis.instantiator.sun.MagicInstantiatorTest
testInternalInstantiator(org.objenesis.instantiator.sun.MagicInstantiatorTest)  Time elapsed: 0.014 sec  <<< ERROR!
java.lang.IllegalAccessError: class org.objenesis.instantiator.sun.MagicInstantiator$$$EmptyClass loaded by jdk/internal/loader/ClassLoaders$AppClassLoader cannot access jdk/internal/reflect superclass jdk.internal.reflect.MagicAccessorImpl
        at org.objenesis.instantiator.sun.MagicInstantiatorTest.testInternalInstantiator(MagicInstantiatorTest.java:51)

testNewInstance(org.objenesis.instantiator.sun.MagicInstantiatorTest)  Time elapsed: 0 sec  <<< ERROR!
java.lang.IllegalAccessError: class org.objenesis.instantiator.sun.MagicInstantiator$$$EmptyClass loaded by jdk/internal/loader/ClassLoaders$AppClassLoader cannot access jdk/internal/reflect superclass jdk.internal.reflect.MagicAccessorImpl
        at org.objenesis.instantiator.sun.MagicInstantiatorTest.testNewInstance(MagicInstantiatorTest.java:42)
@henri-tremblay henri-tremblay self-assigned this May 16, 2018
@henri-tremblay henri-tremblay added this to the 2.7 milestone May 16, 2018
@henri-tremblay
Copy link
Contributor

Interesting. Thanks. Yes. The Magic concept was indeed removed so this test should be ignored to Java 10.

@ebourg
Copy link
Author

ebourg commented May 16, 2018

Thank you for the quick fix.

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

No branches or pull requests

2 participants