-
Type:
Sub-task
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: None
-
Component/s: core-libs
-
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
-