Name: rmT116609 Date: 07/15/2003
A DESCRIPTION OF THE PROBLEM :
I was replacing the data in my list model with a shorter list and calling fireIntervalRemoved but still getting ArrayIndexOutOfBoundsExceptions. The javadoc says to specify the *new* elements, so I was specifying 0, newListSize.
It's now apparent to me that you should actually specify the elements *removed*.
The javadoc as it is, is very misleading and could do with a rewrite.
EXPECTED VERSUS ACTUAL BEHAVIOR :
index0 and index1 are the endpoints of the interval that's been removed
The new elements are specified by a closed interval index0, index1, i.e. the range that includes both index0 and index1.
index0 - one end of the new interval
index1 - the other end of the new interval
URL OF FAULTY DOCUMENTATION :
(Incident Review ID: 191381)