Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.6-beta-2
-
None
-
None
Description
There has been a regression in 1.6 that causes the assignment of a String with length 1 to a char location to fail if it is an array element.
So where as these still work:
char c
c = 'a'
c = '\u00A0'
these don't (and are fine in 1.5.x):
char[] ca = new char[1]
ca[0] = 'a'
ca[0] = '\u00A0'
Attachments
Attachments
Issue Links
- depends upon
-
GROOVY-3173 Assignment to array elements is inconsistent with assignment to fields and variables
- Closed
- is depended upon by
-
GROOVY-3167 Integers not automatically converted to Bytes
- Closed