groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel.Sun" <sun...@apache.org>
Subject Re: [PROPOSAL]Provide an option to generate stubs in in-momery file system for better compiling performance
Date Sat, 19 Jan 2019 14:58:31 GMT
[Help wanted]

Even if I add "--add-modules java.compiler --add-opens
java.compiler/javax.tools=ALL-UNNAMED" to JVM, the following error( Type
javax.tools.JavaFileObject not present ) still happens when running on
Java9+... 
Any advice to fix the issue? Thanks in advance!


java.lang.TypeNotPresentException: Type javax.tools.JavaFileObject not
present

	at
java.base/sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:117)
	at
java.base/sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:125)
	at
java.base/sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)
	at
java.base/sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:68)
	at
java.base/sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:138)
	at
java.base/sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)
	at
java.base/sun.reflect.generics.repository.ConstructorRepository.computeParameterTypes(ConstructorRepository.java:111)
	at
java.base/sun.reflect.generics.repository.ConstructorRepository.getParameterTypes(ConstructorRepository.java:87)
	at
java.base/java.lang.reflect.Executable.getGenericParameterTypes(Executable.java:279)
	at
java.base/java.lang.reflect.Method.getGenericParameterTypes(Method.java:330)
	at
java.desktop/java.beans.FeatureDescriptor.getParameterTypes(FeatureDescriptor.java:391)
	at
java.desktop/java.beans.MethodDescriptor.setMethod(MethodDescriptor.java:118)
	at
java.desktop/java.beans.MethodDescriptor.<init>(MethodDescriptor.java:74)
	at
java.desktop/java.beans.MethodDescriptor.<init>(MethodDescriptor.java:58)
	at
java.desktop/java.beans.Introspector.getTargetMethodInfo(Introspector.java:1047)
	at java.desktop/java.beans.Introspector.getBeanInfo(Introspector.java:462)
	at java.desktop/java.beans.Introspector.getBeanInfo(Introspector.java:205)
	at groovy.lang.MetaClassImpl$15.run(MetaClassImpl.java:3417)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at groovy.lang.MetaClassImpl.addProperties(MetaClassImpl.java:3415)
	at groovy.lang.MetaClassImpl.initialize(MetaClassImpl.java:3392)
	at
org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:289)
	at
org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:331)
	at
org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.getMetaClass(MetaClassRegistryImpl.java:271)
	at
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:984)
	at
org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.compareEqual(DefaultTypeTransformation.java:653)
	at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.compareEqual(ScriptBytecodeAdapter.java:710)
	at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.compareNotEqual(ScriptBytecodeAdapter.java:714)
	at
org.codehaus.groovy.transform.classloading.TransformsAndCustomClassLoadersTest.setUp(TransformsAndCustomClassLoadersTest.groovy:60)
	at junit.framework.TestCase.runBare(TestCase.java:139)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:129)
	at junit.framework.TestSuite.runTest(TestSuite.java:252)
	at junit.framework.TestSuite.run(TestSuite.java:247)
	at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
	at
com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
	at
com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
	at
com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
Caused by: java.lang.ClassNotFoundException: javax.tools.JavaFileObject
	at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Class.java:398)
	at
java.base/sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:114)
	... 41 more

(
https://travis-ci.org/apache/groovy/builds/481727005?utm_source=github_status&utm_medium=notification
)


Cheers,
Daniel.Sun



-----
Apache Groovy committer 
Blog: http://blog.sunlan.me 
Twitter: @daniel_sun 

--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Mime
View raw message