Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.1
-
None
-
Groovy 2.0.1, java version "1.7.0_05", MacOSX 10.8
Description
I found errors when I use increment(prefix/postfix) operator to an element of array.
Following Code:
import groovy.transform.* @CompileStatic def foo() { int[] p = new int[10] p[0]++ } foo()
generates following error:
$ /tool/groovy-2.0.1/target/install/bin/groovy ~/tmp/test2.groovy
Caught: java.lang.VerifyError: (class: test2, method: foo signature: ()Ljava/lang/Object Expecting to find array of objects or arrays on stack
java.lang.VerifyError: (class: test2, method: foo signature: ()Ljava/lang/Object Expecting to find array of objects or arrays on stack