-
Bug
-
Resolution: Fixed
-
P3
-
7
-
b08
-
Verified
FULL PRODUCT VERSION :
A DESCRIPTION OF THE PROBLEM :
Link to documentation:
http://docs.oracle.com/javase/7/docs/api/java/util/ArrayList.html#removeRange(int,%20int)
According to the documentation, an IndexOutOfBoundsException is thrown if (fromIndex < 0 || fromIndex >= size() || toIndex > size() || toIndex < fromIndex).
However, no Exception is thrown on removeRange(size(), size()). Removing the condition (fromIndex >= size()) from the documentation should fix the mistake.
REPRODUCIBILITY :
This bug can be reproduced always.
A DESCRIPTION OF THE PROBLEM :
Link to documentation:
http://docs.oracle.com/javase/7/docs/api/java/util/ArrayList.html#removeRange(int,%20int)
According to the documentation, an IndexOutOfBoundsException is thrown if (fromIndex < 0 || fromIndex >= size() || toIndex > size() || toIndex < fromIndex).
However, no Exception is thrown on removeRange(size(), size()). Removing the condition (fromIndex >= size()) from the documentation should fix the mistake.
REPRODUCIBILITY :
This bug can be reproduced always.