On Wed, 31 Mar 2021 21:16:29 GMT, John Hendrikx <jhendr...@openjdk.org> wrote:
>> modules/javafx.graphics/src/test/java/test/javafx/scene/SceneTest.java line >> 1019: >> >>> 1017: pane = null; >>> 1018: >>> 1019: System.gc(); >> >> It is not sufficient to call `System.gc()` only once, since it will make for >> a fragile test. I recommend using the `JMemoryBuddy::assertCollectable` for >> this, which is what we are using for new tests. > > This tool is in javafx.base's test folder, and it is not allowing me to > reference it. I'm not quite sure how to change the project to allow this. Added reference in build.gradle and used the tool as suggested. ------------- PR: https://git.openjdk.java.net/jfx/pull/448