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
- relates to
-
JDK-8005051 default methods for Iterator
- Closed