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

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

    XMLWordPrintable

Details

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

    Description

      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().

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: