JDK-8095354 : SortedList: throws on set
  • Type: Bug
  • Component: javafx
  • Sub-Component: base
  • Affected Version: fx2.0
  • Priority: P5
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2011-07-28
  • Updated: 2015-07-21
  • Resolved: 2013-05-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Fixed
Related Reports
Blocks :  
Blocks :  
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);
    }
    

Comments
Verified for 8.0 b122
07-01-2014

Fixed in the new implementation (RT-17053)
07-05-2013

Reducing priority and moving to Lombard, because SortedList is going to be removed from the public API.
04-08-2011