Duplicate :
|
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