RFR(s): 8166446 SingletonIterator.forEachRemaining doesn't advance before calling action
stuart.marks at oracle.com
Tue Dec 6 21:28:54 UTC 2016
Please review this small fix to adjust the behavior of
SingletonIterator.forEachRemaining in the case where its action throws an exception:
Strictly speaking, this behavior is undefined (see the spec adjustment
JDK-8168745   that Paul Sandoz pushed recently). However, we felt it was
reasonable to make this case behave consistently with the default implementation
of Iterator.forEachRemaining(), which advances before calling the action.
Also, please ignore the extra changeset comment lines in the webrev. There's
only one changeset here:
rev 16204 : 8166446: SingletonIterator.forEachRemaining doesn't advance
before calling action
Something funny is up with webrev....
More information about the core-libs-dev