CollectionAndMapModifyStreamTest: minor copy-paste error

Stefan Zobel spliterator at gmail.com
Tue Mar 8 23:01:00 UTC 2016


Hi all,

just noticed that

org.openjdk.tests.java.util.stream.CollectionAndMapModifyStreamTest


has a small copy & paste error in line 116:

115: maps.put(HashMap.class.getName(), () -> new HashMap<>(content));
116: maps.put(HashMap.class.getName(), () -> new LinkedHashMap<>(content));

The same key is used for HashMap and LinkedHashMap, so the tests for
HashMap never get executed.


Btw, the "ThowableHelper" from /bootlib/java.base/java/util/stream
should be renamed to the correct "ThRowableHelper" someday ;-)

Regards,
Stefan



More information about the core-libs-dev mailing list