RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)
Rémi Forax
forax at openjdk.org
Wed Nov 8 18:07:05 UTC 2023
On Mon, 30 Oct 2023 15:38:35 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/Gatherers.java line 64:
> 62: * needlessly
> 63: * 3. allows for more efficient composition and evaluation
> 64: */
The downside is that if this object escape there will be spurious ClassCastException where the compiler insert cast for erasure that are hard to diagnose.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16420#discussion_r1387015480
More information about the core-libs-dev
mailing list