-
Bug
-
Resolution: Not an Issue
-
P3
-
None
-
5.0
-
None
-
generic
-
windows_xp
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
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
- relates to
-
JDK-7023484 add typesafe static Collections.toArray(Collection<? extends T>, IntFunction<T[]>)
-
- Open
-