-
Bug
-
Resolution: Fixed
-
P5
-
fx2.0
-
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);
}
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);
}
- blocks
-
JDK-8098279 Reintroduce SortedList/FilteredList and TransformationList
- Closed
- is blocked by
-
JDK-8103780 Remove SortableList and FilterableList
- Resolved