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

No return value and wrong exception described in LinkedList.addAll(Collection)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • docs
    • None
    • beta
    • sparc
    • solaris_2.5
    • Verified

      I saw two errors existing in the specification of the method java.util.LinkedList.addAll(Collection):
      i) This method should return a boolean value, but there is no return values descirbed in the "Returns" field of the specs.
      ii) The exception described in the "Throws" field is incorrect. The argument for this methed is Collection, so it shouldn't throw any
      IndexOutOfBoundException.

            jhosunw Jamie Ho (Inactive)
            hji Huafang Ji (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: