-
Sub-task
-
Resolution: Fixed
-
P4
-
None
-
b89
-
Verified
Add a forEach default method to Iterator. Make remove() a default method (which throws UnsupportedOperationException unless overridden) to save subclasses from having to override remove even if they do not support remove.
- is blocked by
-
JDK-8004967 Default method cause java.lang.VerifyError: Illegal use of nonvirtual function call
-
- Closed
-
- relates to
-
JDK-8013150 Iterator.remove and forEachRemaining relationship not specified
-
- Closed
-
-
JDK-8005053 SmallSet implements both Iterator and Iterable
-
- Closed
-