JDK-8005051 : default methods for Iterator
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.util
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2012-12-14
  • Updated: 2014-10-06
  • Resolved: 2013-04-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8 b89Fixed
Related Reports
Blocks :  
Relates :  
Relates :  
Description
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.
Comments
tests were in http://hg.openjdk.java.net/jdk8/tl/jdk/rev/3ca33647db95
22-07-2013

fix available in lambda repo
14-12-2012