-
Bug
-
Resolution: Duplicate
-
P3
-
6
-
None
-
generic
-
generic
List.subList specifies that List.subList(x,y), where x>y,
throws IndexOutOfBoundsException.
Unfortunately, its skeletal implementation, AbstractList, specifies that
IllegalArgumentException is thrown.
Different implementations behave differently, violating the contract of
List.subList.
###@###.### 2005-05-16 02:21:25 GMT
throws IndexOutOfBoundsException.
Unfortunately, its skeletal implementation, AbstractList, specifies that
IllegalArgumentException is thrown.
Different implementations behave differently, violating the contract of
List.subList.
###@###.### 2005-05-16 02:21:25 GMT
- duplicates
-
JDK-4506427 (coll spec) List.subList doc IndexOutOfBoundsException vs. IllegalArgumentException
-
- Open
-