Issue 410 in groovypptest: NPE in CleaningVerifier / TraitASTTransform

74 views
Skip to first unread message

groovy...@googlecode.com

unread,
Mar 23, 2013, 6:54:26 PM3/23/13
to groovyp...@googlegroups.com
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

groovy...@googlecode.com

unread,
Mar 23, 2013, 7:00:47 PM3/23/13
to groovyp...@googlegroups.com

Comment #1 on issue 410 by iir...@gmail.com: NPE in CleaningVerifier /
TraitASTTransform
http://code.google.com/p/groovypptest/issues/detail?id=410

Even just adding groovypp to classpath without even using @Trait causes the
same error. People have reported this months ago:
http://netbeans.org/bugzilla/show_bug.cgi?id=211875

This means that probably NOBODY can use Groovy++ in latest Groovy versions.
I'm using Groovy 2.1.

Is Groovy++ project still active? How such a terrible bug can be unfixed
for so long?

Mark Haniford

unread,
Mar 24, 2013, 10:00:25 AM3/24/13
to groovyp...@googlegroups.com

Alex no longer works on groovy++.  Try kotlin

You received this message because you are subscribed to the Google Groups "Groovy++" group.
To unsubscribe from this group and stop receiving emails from it, send an email to groovyplusplus+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply all
Reply to author
Forward
0 new messages