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

Work with ASM8.0 AsmClassFactory.getLatestVersion() return an deprecated value ASM9_EXPERIMENTAL #109

Open
qunshengWan opened this issue Oct 13, 2020 · 0 comments

Comments

@qunshengWan
Copy link
Contributor

java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at org.glassfish.rmic.Main.getEnv(Main.java:475)
at org.glassfish.rmic.Main.doCompile(Main.java:491)
at org.glassfish.rmic.Main.compile(Main.java:156)
at sun.rmi.rmic.Main.main(Main.java:33)
Caused by: java.lang.IllegalStateException: ASM9_EXPERIMENTAL can only be used by classes compiled with --enable-preview
at org.objectweb.asm.Constants.checkIsPreview(Constants.java:217)
at org.objectweb.asm.Constants.checkAsmExperimental(Constants.java:189)
at org.objectweb.asm.ClassVisitor.(ClassVisitor.java:79)
at org.objectweb.asm.ClassVisitor.(ClassVisitor.java:57)
at org.glassfish.rmic.asm.AsmClassFactory$ClassDefinitionVisitor.(AsmClassFactory.java:112)
at org.glassfish.rmic.asm.AsmClassFactory.loadDefinition(AsmClassFactory.java:96)
at org.glassfish.rmic.tools.javac.BatchEnvironment.loadFile(BatchEnvironment.java:476)
at org.glassfish.rmic.tools.javac.BatchEnvironment.loadDefinition(BatchEnvironment.java:577)
at org.glassfish.rmic.tools.java.ClassDeclaration.getClassDefinition(ClassDeclaration.java:127)
at org.glassfish.rmic.iiop.BatchEnvironment.(BatchEnvironment.java:86)
... 8 more
Cannot instantiate class org.glassfish.rmic.iiop.BatchEnvironment
Exception in thread "main" java.lang.NullPointerException
at org.glassfish.rmic.Main.doCompile(Main.java:492)
at org.glassfish.rmic.Main.compile(Main.java:156)
at sun.rmi.rmic.Main.main(Main.java:33)

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

No branches or pull requests

1 participant