RFR 8164691 Stream specification clarifications for iterate and collect

Paul Sandoz paul.sandoz at oracle.com
Fri Aug 26 23:13:27 UTC 2016


Hi,

Please review some minor tweaks to the stream specification:

  http://cr.openjdk.java.net/~psandoz/jdk9/JDK-8164691-stream-iterate-collect-spec-updates/webrev/index.html <http://cr.openjdk.java.net/~psandoz/jdk9/JDK-8164691-stream-iterate-collect-spec-updates/webrev/index.html>

The first tweak is to clarify the iterate methods and HB edges between function calls, the functions could potentially be stateful, they will never be called concurrently due to the nature of the source, but may be called in different threads.

The second tweak is to the three-arg collect method. The combiner of result containers neglected to state how result containers should be merged.

Thanks,
Paul.


More information about the core-libs-dev mailing list