Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2.1
-
None
-
Groovy Version: 2.2.1 JVM: 1.7.0_17 Vendor: Oracle Corporation OS: Mac OS X
Description
When using @CompileStatic, the compiler tries to access a byte array using the getAt method instead of using array index operators/primitives. Strangely, this only seems to happen when the array access is inside certain closures. When the byte array access happens inside a Java-style for loop, the correct code is generated.