Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.7, 2.1.3, 2.1.4
-
None
-
Groovy lib 2.1.3
jdk 1.7
Description
Run this script:
byte[] b = new byte[1]
b[0] = 16
b[0] |= 2
println b[0]
Got result: 16
Right result is 18
This bug only occurs when using xxx Assign operator, e.g. |=, += , -=.
And Int array works fine.