JDK-8230021 : Stream.flatMap is still broken
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.stream
  • Affected Version: 11
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86_64
  • Submitted: 2019-08-17
  • Updated: 2019-08-22
  • Resolved: 2019-08-22
Related Reports
Duplicate :  
Description
ADDITIONAL SYSTEM INFORMATION :
Bug occurs even in openjdk 14

A DESCRIPTION OF THE PROBLEM :
https://bugs.openjdk.java.net/browse/JDK-8075939
This bug still happens if you replace .findFirst().get() with .iterator().next().

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Take the test case in the description of the ticket here: https://bugs.openjdk.java.net/browse/JDK-8075939
replace .findFirst().get() with .iterator().next()



FREQUENCY : always