-
Enhancement
-
Resolution: Not an Issue
-
P4
-
None
-
5.0
-
generic, x86
-
solaris_8, windows_xp
Please add the method
static <T> T[] Collections.toArray(Collection<?> c, Class<T> t);
static <T> T[] Collections.toArray(Collection<?> c, Class<T> t);
- duplicates
-
JDK-6201178 (coll) Add E[] toArray(Class<T>) so that an array instance is not required
- Closed
- relates to
-
JDK-5094009 ClassCastException when casting an Object[] to a String[]
- Closed
-
JDK-6195753 (coll) Arrays.sort(Object[]) should eschew clone() in favor of new Object[]+System.arraycopy()
- Closed
-
JDK-8060192 Add default method <A> A[] Collection.toArray(IntFunction<A[]> generator)
- Resolved
-
JDK-5101892 (reflect) retrofit Array.newInstance by using generics
- Closed