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

Iterator.remove and forEachRemaining relationship not specified

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P3
    • Resolution: Fixed
    • 8
    • 8
    • core-libs
    • None
    • b91
    • Verified

    Description

      After forEachRemaining returns a subsequent remove() should remove the last element and not throw an exception. The default implementation on Iterator removes the last element, and optimized implementations of the default should remain consistent. Also check other ListIterator methods such as previous() and set().

      Attachments

        Issue Links

          Activity

            People

              akhil Akhil Arora (Inactive)
              akhil Akhil Arora (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: