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

Enhance for-in and for-each for Lists and Maps

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8
    • core-libs
    • None
    • b106
    • generic
    • generic

      Currently, for-in doesn't work for either Lists or Maps, but it should - iterating over a numeric range of valid indices for a List, and over Map.keySet() for a Map.

      Likewise, for-each doesn't work for Maps, but it should - iterating over Map.values().

            attila Attila Szegedi
            attila Attila Szegedi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: