-
Type:
Bug
-
Resolution: Not an Issue
-
Priority:
P4
-
Affects Version/s: 8, 11, 17, 21, 25.0.1
-
Component/s: core-libs
-
generic
A DESCRIPTION OF THE PROBLEM :
The Java 25 (and earlier) Javadoc for java.util.List.listIterator() says, "Throws: IndexOutOfBoundsException - if the index is out of range (index < 0 || index > size())"
I think the invalid range should be: "(index < 0 || index >= size())"
Note the added equals sign. The same applies for methods: subList(), add(), and addAll().
FREQUENCY :
ALWAYS
The Java 25 (and earlier) Javadoc for java.util.List.listIterator() says, "Throws: IndexOutOfBoundsException - if the index is out of range (index < 0 || index > size())"
I think the invalid range should be: "(index < 0 || index >= size())"
Note the added equals sign. The same applies for methods: subList(), add(), and addAll().
FREQUENCY :
ALWAYS