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

ListView: selectedIndices fires incorrect change on items modification

    XMLWordPrintable

    Details

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported: