Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.8.9, 2.2.0-beta-1, 2.1.7
-
None
-
None
Description
groovy.lang.SpreadMap implementation is incorrect.
Of the Map contract, it correctly implements:
size() get() equals() hashCode()
The rest of the Map methods have incorrect (missing) implementations:
isEmpty() keySet() containsKey() ..etc.
Also, List.toSpreadMap() is broken since it returns an instance of SpreadMap.