Relates :
|
I might be missing something, but the current signature of Collection.toArray(T[] a) allows the following incorrect code: Collection<Integer> l = ...; l.toArray( new Long[0] ); Changing the method signature to <T super E> would make the above code illegal, while allowing all the valid uses legal. ###@###.### 2004-06-14 ###@###.### 2004-06-14
|