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

SortedList: throws on set

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 8
    • fx2.0
    • javafx
    • fx-beta-b36

          @Test
          public void testSetTwice() {
              ObservableList<Integer> original = FXCollections.observableArrayList(
                      0, 1, 2, 3, 4 ,5, 6, 7, 8, 9
              );
              SortedList list = new SortedList(original);
              original.set(0, 10);
              // that's the internal culprit, book-keeping gone wrong
              assertEquals(original.size(), list.size());
             // following line throws an AIOOB, that's what seen in UIs, f.i. when committing edits
              original.set(0, 10);
          }
          

            msladecek Martin Sládeček
            fastegal Jeanette Winzenburg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: