groovy
  1. groovy
  2. GROOVY-2246

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

        blackdrag blackdrag made changes -
        Field Original Value New Value
        Fix Version/s 1.1-rc-2 [ 13792 ]
        Hide
        blackdrag blackdrag added a comment -

        fixed

        Show
        blackdrag blackdrag added a comment - fixed
        blackdrag blackdrag made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]
        Assignee Jochen Theodorou [ blackdrag ]

          People

          • Assignee:
            blackdrag blackdrag
            Reporter:
            Yegor Bryukhov
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: