Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8151809

ES6 Map/Set insertion with existing keys changes iteration order

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b112
    • CPU:
      generic
    • OS:
      generic

      Description

      Adding to a ES6 Map or Set with a key that is already contained in the collection adds the new item at the end of the insertion chain. According to the spec, adding an already contained key should not change its iteration order.

        Attachments

          Activity

            People

            • Assignee:
              hannesw Hannes Wallnoefer
              Reporter:
              hannesw Hannes Wallnoefer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: