[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/32356] New: Array.newInstance(Class<?> componentType, int
From: |
jeroen at frijters dot net |
Subject: |
[Bug classpath/32356] New: Array.newInstance(Class<?> componentType, int[] dimensions) processes dimensions array in incorrect order |
Date: |
15 Jun 2007 15:26:10 -0000 |
Given this program:
public class test
{
public static void main(String[] args) throws Exception
{
int[][][] i = (int[][][])java.lang.reflect.Array.newInstance(int.class, 1,
2, 3);
System.out.println(i.length);
System.out.println(i[0].length);
System.out.println(i[0][0].length);
}
}
We print out:
3
2
1
JDK prints out:
1
2
3
--
Summary: Array.newInstance(Class<?> componentType, int[]
dimensions) processes dimensions array in incorrect
order
Product: classpath
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jeroen at frijters dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32356
- [Bug classpath/32356] New: Array.newInstance(Class<?> componentType, int[] dimensions) processes dimensions array in incorrect order,
jeroen at frijters dot net <=