Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 410 by
iir...@gmail.com: NPE in CleaningVerifier /
TraitASTTransform
http://code.google.com/p/groovypptest/issues/detail?id=410
When I compile this simple code:
@Trait
abstract
class C1 {
abstract def hello();
def runHello() { hello() }
}
@Trait
abstract
class C2 {
abstract def hello();
def runHello2() { hello() }
}
class C3 implements C1 {
def hello() { println("Hello1000!")}
}
I get this error:
Groovyc: java.lang.ExceptionInInitializerError
at
org.mbte.groovypp.compiler.TraitASTTransform.<init>(TraitASTTransform.groovy:43)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:374)
at java.lang.Class.newInstance(Class.java:327)
at
org.codehaus.groovy.transform.ASTTransformationVisitor.addPhaseOperationsForGlobalTransforms(ASTTransformationVisitor.java:313)
at
org.codehaus.groovy.transform.ASTTransformationVisitor.doAddGlobalTransforms(ASTTransformationVisitor.java:280)
at
org.codehaus.groovy.transform.ASTTransformationVisitor.addGlobalTransforms(ASTTransformationVisitor.java:190)
at
org.codehaus.groovy.transform.ASTTransformationVisitor.addPhaseOperations(ASTTransformationVisitor.java:154)
at
org.codehaus.groovy.control.CompilationUnit.<init>(CompilationUnit.java:196)
at
org.codehaus.groovy.tools.javac.JavaAwareCompilationUnit.<init>(JavaAwareCompilationUnit.java:54)
at
org.codehaus.groovy.tools.javac.JavaAwareCompilationUnit.<init>(JavaAwareCompilationUnit.java:49)
at
org.jetbrains.groovy.compiler.rt.DependentGroovycRunner$6.<init>(DependentGroovycRunner.java:324)
at
org.jetbrains.groovy.compiler.rt.DependentGroovycRunner.createStubGenerator(DependentGroovycRunner.java:324)
at
org.jetbrains.groovy.compiler.rt.DependentGroovycRunner.createCompilationUnit(DependentGroovycRunner.java:290)
at
org.jetbrains.groovy.compiler.rt.DependentGroovycRunner.runGroovyc(DependentGroovycRunner.java:66)
at
org.jetbrains.groovy.compiler.rt.GroovycRunner.main(GroovycRunner.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:115)
Caused by: java.lang.NullPointerException
at
org.mbte.groovypp.compiler.CleaningVerifier.<clinit>(CleaningVerifier.java:71)
... 24 more
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings