blob: 41fdcb594d9f577802360cce2c3b8575c7a6c034 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Test for an array assignment bug we've had.
public class assign2
{
public static Object[][] c () { return new Long[5][5]; }
public static Object[] d () { return new Integer[3]; }
public static void main(String[] args)
{
try
{
Object[][] x = c();
x[0] = d();
}
catch (ArrayStoreException _)
{
System.out.println("good");
}
}
}
|