Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.6-beta-1
-
Fix Version/s: 1.6-rc-2, 1.5.8, 1.7-beta-1
-
Component/s: None
-
Labels:None
-
Environment:Patch relative to SVN revision 12775.
-
Testcase included:yes
-
Patch Submitted:Yes
-
Number of attachments :
Description
Updated list#flatten/set#flatten so that maps are unadulterated.
Going with this approach means that maps can safely be used in lists. This is commonly done as a kind of "pseudobean" for unit testing – it's how I first encountered this behavior.
Issue Links
- is related to
-
GROOVY-2903
[ [a:1, b:2, c:3] ].flatten() -> [ 1, 2, 3 ]
-