Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.8.2
-
None
-
Linux
Description
I get incorrect result running the following script with groovy 1.8.2:
a=[3:5] class B { int v; } B b = new B(); b.v = 3 clos = { if (it!=null) { a[it.v] += 3 } } clos.call(b) println 'b.v = ' + b.v println 'a = ' + a
> groovy test.groovy
b.v = 8
a = 8