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

Iterator.remove and forEachRemaining relationship not specified

XMLWordPrintable

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

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

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

              Created:
              Updated:
              Resolved: