Groovy
  1. Groovy
  2. GROOVY-2246

subMap, findAll should return LinkedHashMap instead of plain HashMap

    Details

    • Type: Bug Bug
    • Status: 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

      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

        Yegor Bryukhov created issue -
        Jochen Theodorou made changes -
        Field Original Value New Value
        Fix Version/s 1.1-rc-2 [ 13792 ]
        Hide
        Jochen Theodorou added a comment -

        fixed

        Show
        Jochen Theodorou added a comment - fixed
        Jochen Theodorou made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Assignee Jochen Theodorou [ blackdrag ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12731323 ] Default workflow, editable Closed status [ 12743213 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12969458 ] Default workflow, editable Closed status [ 12977223 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        21h 16m 1 Jochen Theodorou 26/Oct/07 11:08

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development