(Class<?> componentType,
int[] dimensions)
| 28 | */ |
| 29 | public class Array { |
| 30 | public static Object newInstance(Class<?> componentType, |
| 31 | int[] dimensions) { |
| 32 | if (dimensions.length != 1) { |
| 33 | throw new IllegalArgumentException("Only 1-dimensional arrays currently supported by Array.newInstance()"); |
| 34 | } |
| 35 | return newInstanceImpl(componentType, dimensions[0]); |
| 36 | |
| 37 | } |
| 38 | |
| 39 | public static Object newInstance(Class<?> componentType, |
| 40 | int length) { |