On Tue, 31 Oct 2023 13:19:30 GMT, Viktor Klang <vkl...@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

Reply via email to