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

ES6 Map/Set insertion with existing keys changes iteration order

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • core-libs
    • None
    • b112
    • generic
    • generic

      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.

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

              Created:
              Updated:
              Resolved: