Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8124672

ListProperty stops firing events after adding a second ChangeListener

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 7u15
    • javafx
    • Win7 x64, Java7u17, JavaFX 2.2.7

      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.

            msladecek Martin Sládeček
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: