groovy

subMap, findAll should return LinkedHashMap instead of plain HashMap

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.1-rc-1
  • Fix Version/s: 1.1-rc-2
  • Component/s: groovy-jdk
  • Labels:
    None
  • Number of attachments :
    0

Description

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.

Activity

Hide
blackdrag blackdrag added a comment -

fixed

Show
blackdrag blackdrag added a comment - fixed

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: