Issue Details (XML | Word | Printable)

Key: GROOVY-2246
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Jochen Theodorou
Reporter: Yegor Bryukhov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
groovy

subMap, findAll should return LinkedHashMap instead of plain HashMap

Created: 25/Oct/07 12:51 PM   Updated: 26/Oct/07 10:08 AM
Component/s: groovy-jdk
Affects Version/s: 1.1-rc-1
Fix Version/s: 1.1-rc-2

Time Tracking:
Not Specified


 Description  « Hide
Currently, the "default" kind map that we get in Groovy using [..:..] notation is LinkedHashMap.
It comes a bit as a surprise when subMap and findAll return plain HashMap.
A minimal fix would be - to return LinkedHashMap, a maximal fix is to preserve the type of an incoming map.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Jochen Theodorou added a comment - 26/Oct/07 10:08 AM
fixed