RFR: 8253634: TreeCell/Skin: misbehavior on switching skin
fastegal at openjdk.java.net
Fri Sep 25 11:17:39 UTC 2020
TreeCellSkin installs listeners to the TreeView/fixedCellSize that introduce a memory leak, NPE on replacing the
treeView and incorrect update of internal state.
Fixed by removing the listeners (and the internal state had been copied from treeView on change) and access of listView
state when needed.
Added tests that failed before and pass after the fix, plus a sanity test to guarantee same (correct) behavior
Issue and fix is basically the same as for ListCellSkin [JDK-8246745](https://bugs.openjdk.java.net/browse/JDK-8246745)
- 8253634: TreeCell/Skin: misbehavior on switching skin
Stats: 101 lines in 4 files changed: 60 ins; 36 del; 5 mod
Fetch: git fetch https://git.openjdk.java.net/jfx pull/309/head:pull/309
More information about the openjfx-dev