-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
net.synedra.validatorfx.GraphicDecoration.layoutListener ist created like this:
layoutListener = new WeakChangeListener<>((observable, oldValue, newValue) -> layoutGraphic());
this is very likely wrong, since WeakChangeListener explicetly states that "You have to keep a reference to the {@code ChangeListener} that
was passed in for as long as it is in use, otherwise it will be garbage collected too soon."
One way to reproduce the problem is to use the AccordionDemo:
- Write Strings that are "too long" (e.g. 4 chars) into Pane 0 and Pane 1.
- Open Pane 2
- Trigger Garbage Collection (e.g. visualvm)
- Open and close Pane 0
The red mark will be displayed on top of the closed Pane 0, assumedly because the weak listener is gone.
Metadata
Metadata
Assignees
Labels
No labels