Florian Weimer said the following on 05/22/09 14:46:
It's there, but not in the documentation for toArray():

| Note that toArray(new Object[0]) is identical in function to toArray().

<http://java.sun.com/j2se/1.4.2/docs/api/java/util/Collection.html#toArray(java.lang.Object[])>
<http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collection.html#toArray(T[])>

Ah I see - thanks.

Okay well the bug is still open. I think the original intent was to change toArray() to match this, but I think it's far too late to change that behaviour now. So the only "fix" is to delete that sentence from the javadoc.

Were you looking for an actual change in the implementation?

Note this is just my opinion on this, I'm not a decision maker here :)

Cheers,
David

Reply via email to