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

Viktor Klang vklang at openjdk.org
Wed Nov 8 19:28:03 UTC 2023


On Wed, 8 Nov 2023 17:03:38 GMT, Rémi Forax <forax at openjdk.org> wrote:

>> 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.

I don't understand what you mean, do you have an example?

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

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


More information about the core-libs-dev mailing list