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

Groovy 2.1.2 appears to fix a critical issue in generics #4

Closed
rvowles opened this issue Apr 2, 2013 · 3 comments
Closed

Groovy 2.1.2 appears to fix a critical issue in generics #4

rvowles opened this issue Apr 2, 2013 · 3 comments

Comments

@rvowles
Copy link

rvowles commented Apr 2, 2013

We are getting this error in the Eclipse Maven plugin (using 2.1.1). We were using 2.1.1 and getting the same error using the IDEA compiler, but on swapping to 2.1.2 this problem has gone away and all our tests using Mockito now work with @CompileStatic tagged. When attempting to build under Eclipse Maven with the additional 2.1.1 dependency, this problem still occurs.

Any chance of a 2.1.2?

Internal compiler error: java.lang.NullPointerException at org.codehaus.groovy.transform.stc.StaticTypeCheckingVisitor.inferReturnTypeGenerics(StaticTypeCheckingVisitor.java:3094)

java.lang.NullPointerException
at org.codehaus.groovy.transform.stc.StaticTypeCheckingVisitor.inferReturnTypeGenerics(StaticTypeCheckingVisitor.java:3094)
at org.codehaus.groovy.transform.stc.StaticTypeCheckingVisitor.visitMethodCallExpression(StaticTypeCheckingVisitor.java:2088)
at org.codehaus.groovy.transform.sc.StaticCompilationVisitor.visitMethodCallExpression(StaticCompilationVisitor.java:220)
at org.codehaus.groovy.ast.expr.MethodCallExpression.visit(MethodCallExpression.java:64)
at org.codehaus.groovy.ast.CodeVisitorSupport.visitExpressionStatement(CodeVisitorSupport.java:70)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitExpressionStatement(ClassCodeVisitorSupport.java:209)
at org.codehaus.groovy.ast.stmt.ExpressionStatement.visit(ExpressionStatement.java:40)

@aeisenberg
Copy link

Do you know what code triggers this exception? Or, even better, do you know which groovy bug this orresponds to? We can get a 2.1.2 out there, but that may take a few days. But adding a patch for this particular bug would be much faster.

@aeisenberg
Copy link

ps- our issues tracker is http://jira.codehaus.org/browse/GRECLIPSE You will get a faster response if you post there.

@rvowles
Copy link
Author

rvowles commented Apr 4, 2013

Thanks - I have a developer attempting to isolate the issue into a separate artifact, which is proving more difficult than expected.

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

2 participants