On Mon, 30 Oct 2023 15:38:35 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/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

Reply via email to