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

ListIterator should not discard cause on exception

XMLWordPrintable

      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.

            kravikumar Kiran Sidhartha Ravikumar (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: