CollectionAndMapModifyStreamTest: minor copy-paste error
Paul Sandoz
paul.sandoz at oracle.com
Wed Mar 9 12:36:51 UTC 2016
Hi Stefan,
> On 9 Mar 2016, at 00:01, Stefan Zobel <spliterator at gmail.com> wrote:
>
> 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));
>
Oops, well spotted. Logged
https://bugs.openjdk.java.net/browse/JDK-8151511 <https://bugs.openjdk.java.net/browse/JDK-8151511>
> 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 ;-)
>
We could role that in at the same time as this fix.
Paul.
More information about the core-libs-dev
mailing list