On Thu, 16 Apr 2020 19:19:16 GMT, Ambarish Rapte <ara...@openjdk.org> wrote:

>> I wasn't able to reproduce the Problem on Window10 with VirtualBox.
>> 
>> How should I do it? Add a second test class without the static code? Do you 
>> have a good recommendation on how to add it?
>
> The previous version of test failed on my Windows 10 machine with below 
> exception, but the updated version does not
> fail,
> test.javafx.stage.FocusedWindowTest > testLeak FAILED
>     junit.framework.AssertionFailedError: Expected: <null> but was: 
> javafx.stage.Stage@5fe60662
>         at junit.framework.Assert.fail(Assert.java:47)
>         at junit.framework.Assert.assertTrue(Assert.java:20)
>         at junit.framework.Assert.assertNull(Assert.java:233)
>         at junit.framework.Assert.assertNull(Assert.java:226)
>         at 
> test.javafx.stage.FocusedWindowTest.assertCollectable(FocusedWindowTest.java:133)
>         at 
> test.javafx.stage.FocusedWindowTest.testLeakOnce(FocusedWindowTest.java:116)
>         at 
> test.javafx.stage.FocusedWindowTest.testLeak(FocusedWindowTest.java:84)

> Do you have a good recommendation on how to add it?

May be a test like `MeshManagerCacheLeakTest` should be able to solve the 
problem. I have not tried it myself, please
check if it can help here.

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

PR: https://git.openjdk.java.net/jfx/pull/153

Reply via email to