RFR: 8285405: add test and check for negative argument to HashMap::newHashMap et al

Jaikiran Pai jpai at openjdk.java.net
Fri Jun 10 03:28:59 UTC 2022


On Mon, 6 Jun 2022 06:57:23 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

> Can I please get a review of this change which addresses https://bugs.openjdk.java.net/browse/JDK-8285405?
> 
> I've added the test for `LinkedHashMap.newLinkedHashMap(int)` in the existing `test/jdk/java/util/LinkedHashMap/Basic.java` since that test has tests for various APIs of this class.
> 
> For `WeakHashMap.newWeakHashMap` and `HashMap.newHashMap`, I have created new test classes under relevant locations, since these classes already have test classes (almost) per API/feature in those locations.

Hello Stuart, I'll include tests for those in this PR shortly.

-------------

PR: https://git.openjdk.org/jdk/pull/9036


More information about the core-libs-dev mailing list