On Fri, 25 Apr 2025 23:37:13 GMT, Brent Christian <bchri...@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?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24892#discussion_r2061055041

Reply via email to