JDK-8246195 : ListViewSkin/Behavior: misbehavior on switching skin
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: openjfx14
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-05-30
  • Updated: 2021-06-21
  • Resolved: 2020-06-08
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
openjfx15Fixed
Related Reports
Blocks :  
Relates :  
Description
currently, ListView 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 added as filter and removed as handler
- after dispose, still modifying listView (anchor) state due to listeners to items/selection that are not removed

issues with skin:
- memory leak due to behavior leaking
- memory leak due an eventHandler to scrollTo added (and not removed) in super (== VirtualContainerBase) 
- memory leak due to cellFactory in flow not removed
- throws NPE after switching (on setItems, modify items, refresh) due to several listeners not removed by the skin itself


Comments
Changeset: a02e09dd Author: Jeanette Winzenburg <fastegal@openjdk.org> Committer: Ambarish Rapte <arapte@openjdk.org> Date: 2020-06-08 15:36:02 +0000 URL: https://git.openjdk.java.net/jfx/commit/a02e09dd
08-06-2020