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

[ListView] ListView.ListViewFocusModel#itemsContentListener is called twice

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u40
    • Fix Version/s: 8u40
    • Component/s: javafx
    • Labels:
      None

      Description

      While looking into RT-39042 is saw that itemsContentListener is invoked 2 twice for an insert.

      The reason is that:
      a) the focus model itself registers it on the property via updateItemsObserver
      b) itemsProperty in its invalidated property registers it via updateItemsObserver

      2 solutions:
      a) the focus model does not register it
      b) updateItemsObserver also first removes the listener from the newList as well

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jgiles Jonathan Giles
              Reporter:
              tschindl Tom Schindl
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: