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

CopyOnWriteArrayList.listIterator erroneously refers to Enumeration methods

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 6
    • core-libs

      The doc for CopyOnWriteArrayList.listIterator

          /**
           * Returns a ListIterator of the elements in this List (in proper
           * sequence), starting at the specified position in the List. The
           * specified index indicates the first element that would be returned by
           * an initial call to nextElement. An initial call to previousElement
           * would return the element with the specified index minus one.
           * The ListIterator returned by this implementation will throw
           * an UnsupportedOperationException in its remove, set and
           * add methods.
           *

      is clearly incorrect because nextElement and previousElement are methods of
      Enumeration, not ListIterator.
      ###@###.### 2005-05-16 00:04:40 GMT

            martin Martin Buchholz
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: