RFR: 8319123: Implement JEP 461: Stream Gatherers (Preview) [v8]
Viktor Klang
vklang at openjdk.org
Tue Nov 14 16:41:53 UTC 2023
On Tue, 14 Nov 2023 16:35:53 GMT, Viktor Klang <vklang at openjdk.org> wrote:
>> This Pull-Request implements [JEP-461](https://openjdk.org/jeps/461)
>
> Viktor Klang has updated the pull request incrementally with one additional commit since the last revision:
>
> Unpacking the rethrown exceptions from Gatherers.mapConcurrent()
src/java.base/share/classes/java/util/stream/Gatherers.java line 388:
> 386: }
> 387:
> 388: final boolean flush(long atLeastN,
@AlanBateman @PaulSandoz Was alerted to odd nesting of exceptions so I reworked the exception handling of mapConcurrent to unpack any ExecutionException, and intercept InterruptedExceptions to cancel remaining work and reinstating the interrupted flag.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16420#discussion_r1392900033
More information about the core-libs-dev
mailing list