On Wed, 8 Nov 2023 18:04:07 GMT, Rémi Forax <fo...@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

Reply via email to