Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.5.5
-
None
-
None
Description
From GROOVY-1875:
def s = '12'
s.value = 'ABCD'
println s
==>
AB
The 'value' field is a private final variable in class java.lang.String.
Therfore Groovy makes String mutable!