Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.5.4
-
Fix Version/s: 1.5.5, 1.6-beta-1
-
Component/s: None
-
Labels:None
-
Environment:Groovy 1.5.4, Java 6
-
Testcase included:yes
-
Number of attachments :
Description
Try to run the following lines:
def map = [A:"one", B:"two", C:"three"] def list = map.collect { child -> child.value.toUpperCase() } def list2 = map*.value?.toUpperCase() status.out.println list status.out.println list2
The first collect statement runs well. So, we expected the one which fills list2 to be equivalent.
But the result is not the same. After running the script, list2 becomes null.
fixed in trunk and merged onto the 1.5.x branch