flatMap still prevents short circuiting when using .iterator()
david.holmes at oracle.com
Fri Aug 16 00:41:00 UTC 2019
Re-directing to core-libs-dev
On 15/08/2019 7:48 pm, Stephen Buergler wrote:
> Not really sure where to send this.
> flatMap was fixed so that it doesn't prevent short circuiting.
> If you replace the test cases in the ticket with versions that use
> .iterator().next() instead of .findFirst().get() then the problem
> still happens.
> I just tested this with openjdk:14 on docker hub.
More information about the core-libs-dev