RFR: 8355632: WhiteBox.waitForReferenceProcessing() fails assert for return type
Brent Christian
bchristi at openjdk.org
Mon Apr 28 18:58:47 UTC 2025
On Sat, 26 Apr 2025 00:10:04 GMT, Stuart Marks <smarks at openjdk.org> wrote:
>> The newly-added `WhiteBox.waitForReferenceProcessing()` (see [8305186](https://bugs.openjdk.org/browse/JDK-8305186)) always fails with assertions enabled.
>> I've updated the assertion, and also added the test I used locally to test the new method (just not with assertions enabled, apparently.)
>
> test/lib/jdk/test/whitebox/WhiteBox.java line 572:
>
>> 570: wfrp = Reference.class.getDeclaredMethod("waitForReferenceProcessing");
>> 571: wfrp.setAccessible(true);
>> 572: assert wfrp.getReturnType().equals(Class.forPrimitiveName("boolean"));
>
> Does `boolean.class` work?
Yes, thanks
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24892#discussion_r2064328929
More information about the core-libs-dev
mailing list