Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8161558

ListIterator should not discard cause on exception

    Details

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kravikumar Kiran Sidhartha Ravikumar
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: