On Sat, 26 Apr 2025 00:10:04 GMT, Stuart Marks <sma...@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

Reply via email to