-
Enhancement
-
Resolution: Won't Fix
-
P4
-
None
-
5.0
-
None
-
generic, x86
-
linux, windows_xp
I think the following signature:
public static <T> T[] Array.newInstance(Class<T> componentType, int length)
is more type safe than the current one:
public static Object Array.newInstance(Class<?> componentType, int length)
Is there any reason we can't do this?
###@###.### 2004-09-14
public static <T> T[] Array.newInstance(Class<T> componentType, int length)
is more type safe than the current one:
public static Object Array.newInstance(Class<?> componentType, int length)
Is there any reason we can't do this?
###@###.### 2004-09-14
- duplicates
-
JDK-6361355 java.lang.reflect.Array.newInstance() does not allow "run time type tokens"
- Closed
- relates to
-
JDK-5072831 (coll) Please add Collections.toArray
- Closed
-
JDK-6223347 (reflect) Add a generic replacement for Array.newInstance() to help write type safe code
- Closed