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

(coll spec) superfluous ) in AbstractCollection docs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P5 P5
    • 6
    • 5.0
    • core-libs

      A DESCRIPTION OF THE PROBLEM :
      The last parenthese should not be there.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      If the collection fits in the specified array with room to spare (i.e., the array has more elements than the collection), the element in the array immediately following the end of the collection is set to null. This is useful in determining the length of the collection only if the caller knows that the collection does not contain any null elements.
      ACTUAL -
      If the collection fits in the specified array with room to spare (i.e., the array has more elements than the collection), the element in the array immediately following the end of the collection is set to null. This is useful in determining the length of the collection only if the caller knows that the collection does not contain any null elements.)

      URL OF FAULTY DOCUMENTATION :
      http://java.sun.com/j2se/1.5.0/docs/api/java/util/AbstractCollection.html#toArray()

            martin Martin Buchholz
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: