summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/G19990303_02.java
blob: 19c8e305e2a239ff0e99aeeefc225c9cab7c86c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
public class G19990303_02
{
  public static void main (String[] args)
  {
    int i = -1;
    try
      {
	System.out.println ("Pass 1");
	int[][][] arrayInt = new int[i][1][1];
	int ii = arrayInt[i - 1][0][0];
	System.out.println ("Pass 2");
      }
    catch (NegativeArraySizeException e)
      {
	System.out.println ("Pass NegativeArraySizeException");
      }
    System.out.println ("Pass 3");
  }
}