On Wed, 25 May 2022 04:50:33 GMT, liach <[email protected]> wrote:
>> XenoAmess has updated the pull request incrementally with one additional
>> commit since the last revision:
>>
>> add test for newHashSet and newLinkedHashSet
>
> test/jdk/java/util/HashMap/WhiteBoxResizeTest.java line 354:
>
>> 352: rsc("rsls", size, cap, () -> {
>> 353: try {
>> 354: Field mapField =
>> HashSet.class.getDeclaredField("map");
>
> For clarity, consider using var handle/method handle and keep the reflection
> code in the `WhiteBoxResizeTest` constructor.
@liach I refactored the tests. please have a look.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8302