Java Mailing List Archive

http://www.gg3721.com/

Home » eclipse-plugin-dev.groovy »

[groovy-eclipse-plugin-dev] Problem in JDTAnnotatioNode.createExpressionFor

Andrey Bloschetsov

2012-06-22

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi all,

This error associated with @CompileStatic and repeated periodically. I
could not determine the exact cause of this error.

My Env:
Groovy/Grails Tool Suite Version: 3.0.0.M2 Build Id: 201206120636;
Groovy-Eclipse plugin Version: 2.6.1.xx-20120620-1100-e42-RELEASE;
OracleJDK 1.7.0_04-b20 (64-Bit)
Ubuntu 12.04 (64-bit)


General error during instruction selection: Problem in
JDTAnnotatioNode.createExpressionFor(binding=I (id=10) value=(int)1)

org.codehaus.jdt.groovy.internal.compiler.ast.GroovyEclipseBug:
Problem in JDTAnnotatioNode.createExpressionFor(binding=I (id=10)
value=(int)1)
 at org.codehaus.jdt.groovy.internal.compiler.ast.JDTAnnotationNode.createExpressionFor(JDTAnnotationNode.java:173)
 at org.codehaus.jdt.groovy.internal.compiler.ast.JDTAnnotationNode.ensureMembersInitialized(JDTAnnotationNode.java:141)
 at org.codehaus.jdt.groovy.internal.compiler.ast.JDTAnnotationNode.getMember(JDTAnnotationNode.java:65)
 at org.codehaus.groovy.transform.stc.StaticTypeCheckingVisitor.pickInferredTypeFromMethodAnnotation(StaticTypeCheckingVisitor.java:1313)
 at org.codehaus.groovy.transform.stc.StaticTypeCheckingVisitor.visitMethodCallExpression(StaticTypeCheckingVisitor.java:1518)
 at org.codehaus.groovy.transform.sc.StaticCompilationVisitor.visitMethodCallExpression(StaticCompilationVisitor.java:196)
 at org.codehaus.groovy.ast.expr.MethodCallExpression.visit (MethodCallExpression.java:67)
 at org.codehaus.groovy.ast.CodeVisitorSupport.visitReturnStatement (CodeVisitorSupport.java:73)
 at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitReturnStatement (ClassCodeVisitorSupport.java:224)
 at org.codehaus.groovy.transform.stc.StaticTypeCheckingVisitor.visitReturnStatement(StaticTypeCheckingVisitor.java:1012)
 at org.codehaus.groovy.ast.stmt.ReturnStatement.visit (ReturnStatement.java:47)
 at org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement (CodeVisitorSupport.java:35)
 at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement (ClassCodeVisitorSupport.java:179)
 at org.codehaus.groovy.ast.stmt.BlockStatement.visit (BlockStatement.java:69)
 at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClassCodeContainer (ClassCodeVisitorSupport.java:102)
 at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitConstructorOrMethod (ClassCodeVisitorSupport.java:113)
 at org.codehaus.groovy.transform.stc.StaticTypeCheckingVisitor.visitConstructorOrMethod(StaticTypeCheckingVisitor.java:1003)
 at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitMethod (ClassCodeVisitorSupport.java:124)
 at org.codehaus.groovy.transform.stc.StaticTypeCheckingVisitor.visitMethod(StaticTypeCheckingVisitor.java:1184)
 at org.codehaus.groovy.transform.sc.StaticCompilationVisitor.visitMethod(StaticCompilationVisitor.java:108)
 at org.codehaus.groovy.ast.ClassNode.visitContents (ClassNode.java:1169)
 at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass (ClassCodeVisitorSupport.java:51)
 at org.codehaus.groovy.transform.stc.StaticTypeCheckingVisitor.visitClass(StaticTypeCheckingVisitor.java:206)
 at org.codehaus.groovy.transform.sc.StaticCompilationVisitor.visitClass(StaticCompilationVisitor.java:99)
 at org.codehaus.groovy.transform.sc.StaticCompileTransformation.visit(StaticCompileTransformation.java:57)
 at org.codehaus.groovy.transform.ASTTransformationVisitor.visitClass (ASTTransformationVisitor.java:169)
 at org.codehaus.groovy.transform.ASTTransformationVisitor$2.call(ASTTransformationVisitor.java:242)
 at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes (CompilationUnit.java:1190)
 at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation (CompilationUnit.java:622)
 at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations (CompilationUnit.java:600)
 at org.codehaus.groovy.control.CompilationUnit.compile (CompilationUnit.java:577)
 at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.processToPhase(GroovyCompilationUnitDeclaration.java:171)
 at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.generateCode(GroovyCompilationUnitDeclaration.java:1534)
 at org.eclipse.jdt.internal.compiler.Compiler.process (Compiler.java:838)
 at org.eclipse.jdt.internal.compiler.ProcessTaskManager.run(ProcessTaskManager.java:137)
 at java.lang.Thread.run (Thread.java:722)


--
С наилучшими пожеланиями,
Андрей Блощецов.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


©2008 gg3721.com - Jax Systems, LLC, U.S.A.