(coll spec) Minor typo in javadoc of java.util.Collection.toArray(Object[])

XMLWordPrintable

      FULL PRODUCT VERSION :


      A DESCRIPTION OF THE PROBLEM :
      Suppose l is a List known to contain only strings. The following code can be used to dump the list into a newly allocated array of String:

           String[] x = (String[]) v.toArray(new String[0]);
       
      -> should be

           String[] x = (String[]) l.toArray(new String[0]);



      REPRODUCIBILITY :
      This bug can be reproduced always.
      ###@###.### 2005-04-20 09:03:22 GMT

            Assignee:
            Martin Buchholz
            Reporter:
            Jitender S (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: