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

ES6 for..of should work for Java Maps and Sets

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • core-libs
    • None
    • b160
    • generic
    • generic

        JDK-8156665 made ES6 for..of statement work with Java arrays and Iterables. Since for..of works with ES6 Map and Set objects, it would be nice to make it work on java.util.Map and java.util.Set as well. Iteration behaviour should be the same as for ES6 collections, iterating over [key, value] arrays for java.util.Map and values for java.util.Set

              sdama Srinivas Dama (Inactive)
              hannesw Hannes Wallnoefer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: