Iterator.remove and forEachRemaining relationship not specified

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 8
    • Component/s: 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().

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

              Created:
              Updated:
              Resolved: