On Wed, 8 Nov 2023 17:03:38 GMT, Rémi Forax <fo...@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