Can't gc a node removed from its scene

Kevin Rushforth kevin.rushforth at oracle.com
Wed Feb 26 14:27:06 PST 2014


Have you tried it on JDK 8?

-- Kevin


Werner Lehmann wrote:
> Hi,
>
> I have removed a node from its scene. Node.scene and Node.parent both 
> are null. However, inner classes of the Scene seem to keep a reference:
>
> Scene.ClickGenerator.pressedTargets
> Scene.ClickGenerator.releasedTargets
> Scene.MouseHandler.pdrEventTargets
>
> See http://imgur.com/L8dRQDW for a strong reference chain example. Any 
> idea how I can have this cleaned up? Thx... (this is on J7 btw)
>
> Werner


More information about the openjfx-dev mailing list