RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

Rémi Forax forax at openjdk.org
Wed Nov 8 17:08:07 UTC 2023


On Tue, 31 Oct 2023 13:19:30 GMT, Viktor Klang <vklang at openjdk.org> wrote:

>> This Pull-Request implements [JEP-461](https://openjdk.org/jeps/461)
>
> src/java.base/share/classes/java/util/stream/AbstractPipeline.java line 242:
> 
>> 240:     }
>> 241: 
>> 242:     // Terminal evaluation methods
> 
> This is needed in order to let subclasses override terminal operations such as, but not limited to, `collect`. (since a terminal operation needs to mark the entire pipeline as consumed).

It's not clear in which case the exception is thrown from the POV of a user of the API.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/16420#discussion_r1386945056


More information about the core-libs-dev mailing list