RFR: 8264330: Scene MouseHandler is referencing removed nodes
Kevin Rushforth
kcr at openjdk.java.net
Wed Mar 31 13:04:14 UTC 2021
On Wed, 31 Mar 2021 10:29:03 GMT, Marius Hanl <github.com+66004280+Maran23 at openjdk.org> wrote:
>> Small fix to clear a reference to a removed node left by Scene$MouseHandler.
>
> modules/javafx.graphics/src/test/java/test/javafx/scene/SceneTest.java line 978:
>
>> 976:
>> 977: @Test public void testNoReferencesRemainToRemovedNodeAfterBeingClicked() {
>> 978: StubToolkit toolkit = (StubToolkit) Toolkit.getToolkit();
>
> This cast isn't necessary, is it?
Yes, it is necessary, since it won't compile otherwise.
-------------
PR: https://git.openjdk.java.net/jfx/pull/448
More information about the openjfx-dev
mailing list