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

SortedList: throws on set

    XMLWordPrintable

Details

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

    Description

          @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);
          }
          

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported: