RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)
Viktor Klang
vklang at openjdk.org
Wed Nov 8 19:37:05 UTC 2023
On Wed, 8 Nov 2023 18:04:07 GMT, Rémi Forax <forax 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.
Can you show me an example?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16420#discussion_r1387110122
More information about the core-libs-dev
mailing list