Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

latest rmic can't work fine with asm8.0 on JDK14 #29

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

latest rmic can't work fine with asm8.0 on JDK14 #29

qunshengWan opened this issue Apr 13, 2020 · 0 comments

Comments

@qunshengWan
Copy link

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant