We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ClassDefinitionUtils.defineClass() uses the Unsafe.defineClass() method which was removed in Java 11:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project objenesis: Compilation failure [ERROR] ~/objenesis/main/src/main/java/org/objenesis/instantiator/util/ClassDefinitionUtils.java:[100,54] cannot find symbol [ERROR] symbol: method defineClass(java.lang.String,byte[],int,int,java.lang.ClassLoader,java.security.ProtectionDomain) [ERROR] location: class sun.misc.Unsafe
The text was updated successfully, but these errors were encountered:
Thanks. I'm aware of it. Should have filed it. I'm on it right now. If you have a PR for that, I'm listening.
Useful resources are: https://dzone.com/articles/jdk-11-and-proxies-in-a-world-past-sunmiscunsafe https://github.com/jboss-javassist/javassist/pull/198/files https://github.com/gradle/gradle/pull/4976/files
Sorry, something went wrong.
5f9d20b
Thank you!
henri-tremblay
No branches or pull requests
ClassDefinitionUtils.defineClass() uses the Unsafe.defineClass() method which was removed in Java 11:
The text was updated successfully, but these errors were encountered: