ajwang / groovypptest

Automatically exported from code.google.com/p/groovypptest
0 stars 0 forks source link

ClassCastException in TraitASTTransform usage #390

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Ref: http://jira.codehaus.org/browse/GROOVY-4821

Reproducible with: Groovy 1.8.0 + groovypp-0.4.231_1.8.0 as well as Groovy 
1.8.1 + groovypp-0.4.295_1.8.0

Script:
--------------------
def (a,b) = [1,2]
--------------------

Error:
--------------------
Caught: BUG! exception in phase 'conversion' in source unit 'C:\A.groovy' 
org.codehaus.groovy.ast.expr.ArgumentListExpression c
annot be cast to org.codehaus.groovy.ast.expr.VariableExpression
BUG! exception in phase 'conversion' in source unit 'C:\A.groovy' 
org.codehaus.groovy.ast.expr.ArgumentListExpression cannot be
 cast to org.codehaus.groovy.ast.expr.VariableExpression
Caused by: java.lang.ClassCastException: 
org.codehaus.groovy.ast.expr.ArgumentListExpression cannot be cast to 
org.codehaus.groovy.ast.expr.
VariableExpression
        at org.mbte.groovypp.compiler.TraitASTTransform$GppParserPluginFactory$1.declarationExpression(TraitASTTransform.groovy:347)
--------------------

Original issue reported on code.google.com by roshanda...@gmail.com on 26 Jul 2011 at 3:19

GoogleCodeExporter commented 8 years ago

Original comment by roshanda...@gmail.com on 8 Aug 2011 at 2:16