JDK-8256821 : TreeViewSkin/Behavior: misbehavior on switching skin
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: 9,openjfx15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-11-21
  • Updated: 2021-06-21
  • Resolved: 2020-12-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
openjfx16Fixed
Related Reports
Blocks :  
Relates :  
Description
currently, TreeView is excluded from both Skin- and BehaviorMemoryLeakTest - including it in both makes both tests fail

issues with behavior:
- memory leak due to an eventHandler that's not removed
- after dispose, still modifying treeView (anchor) state due to listeners selection that are not removed 

issues with skin:
- memory leak due to behavior leaking
- memory leak due to cellFactory in flow not removed
- throws NPE after switching (on modifying root children, refresh) due to listeners not removed by the skin 

Comments
Changeset: ca0d3d0f Author: Jeanette Winzenburg <fastegal@openjdk.org> Date: 2020-12-07 13:07:12 +0000 URL: https://git.openjdk.java.net/jfx/commit/ca0d3d0f
07-12-2020