DOC: Error in the documentation of java.util.ListIterator.add()

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.4.0
    • Affects Version/s: 1.4.0
    • Component/s: docs
    • beta3
    • generic
    • generic



      Name: rmT116609 Date: 09/19/2001


      In the API for ListIterator.add method it can be read:

      "
      ClassCastException - if the class of the specified element prevents it from being added to this Set.

      IllegalArgumentException - if some aspect of this element prevents it from being added to this Collection.
      "

      But you can't get a ListIterator for a Collection or Set compile-time type so I guess the words Set and
      Collection should be replaced by List, in the ListIterator.set() method
      (Review ID: 132189)
      ======================================================================

            Assignee:
            Scott Hommel (Inactive)
            Reporter:
            Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: