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

ListView: selectedIndices fires incorrect change on items modification

XMLWordPrintable

      assume
      - multiple indices selected
      - having a listener on selectedIndices
      - add item to listView's items

      such that f.i.
          
          // before add item
          selectedIndices = [2, 3]
          // after add item
          selectedIndices = [3, 4]
          // listener on selectedIndices:
          c -> {
               while(c.next()) {
                    assertFalse(c.wasPermutated());
               }
          }

      Whatever the change to expect (might be a single replace, f.i.) - it's not a permutation as fired by ListView's selectedIndices.

      for runnable code, see SO http://stackoverflow.com/q/26913280/203657

            jgiles Jonathan Giles
            fastegal Jeanette Winzenburg
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: