Please confer to https://forums.oracle.com/forums/thread.jspa?threadID=2529545 for the example code.
It adds two ChangeListeners to a ListProperty and then sets its value. Expected behaviour is that both listeners get notified. Actual is, that none gets notified, resulting in the following output:
Setting list.
Value: [1, 2, 3]
After removing the registration of the second listener, the first one gets notified as expected.
Using an IntegerProperty, both listeners get notified as expected.
It adds two ChangeListeners to a ListProperty and then sets its value. Expected behaviour is that both listeners get notified. Actual is, that none gets notified, resulting in the following output:
Setting list.
Value: [1, 2, 3]
After removing the registration of the second listener, the first one gets notified as expected.
Using an IntegerProperty, both listeners get notified as expected.
- relates to
-
JDK-8126388 SimpleListProperty incorrectly reuses ListChangeListener.Change object for different listeners
-
- Resolved
-