c.toArray might (incorrectly) not return Object (see 6260652)
fw at deneb.enyo.de
Thu May 21 21:46:07 PDT 2009
* David Holmes:
> Florian Weimer said the following on 05/22/09 03:18:
>> So says the ArrayList(Collection) constructor. Can this bug report be
>> opened? Is this workaround still necessary?
> I'm confused. The bug states:
Is the bug about the add method failing with an ArrayStoreException?
> The Collection documentation claims that
> is "identical in function" to
> collection.toArray(new Object);
> but I checked the Collection documentation back to 1.4.2 and it
> doesn't say anything like that as far as I can see.
It's there, but not in the documentation for toArray():
| Note that toArray(new Object) is identical in function to toArray().
More information about the core-libs-dev