-
Enhancement
-
Resolution: Fixed
-
P4
-
8, 9
-
b16
-
generic
-
generic
A DESCRIPTION OF THE REQUEST :
In class AbstractList, the two Iterators discard IndexOutOfBoundsExceptions in next(), remove(), previous() and set(). These methods just throw a new exception, which does not contain the cause.
JUSTIFICATION :
This behaviour makes it difficult to locate errors that occour in derived classes.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The cause of the exception should be included in the thrown exception.
In class AbstractList, the two Iterators discard IndexOutOfBoundsExceptions in next(), remove(), previous() and set(). These methods just throw a new exception, which does not contain the cause.
JUSTIFICATION :
This behaviour makes it difficult to locate errors that occour in derived classes.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The cause of the exception should be included in the thrown exception.
- csr for
-
JDK-8233856 Add constructor overloads to NoSuchElementException
-
- Closed
-