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

ListProperty stops firing events after adding a second ChangeListener

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7u15
    • Fix Version/s: 8
    • Component/s: javafx
    • Environment:

      Win7 x64, Java7u17, JavaFX 2.2.7

    • Subcomponent:

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported: