1 // Test to make sure null arrays throw the right execption
17 int[] x = (int[])null;
22 public static void main(String args[])
29 int[] x = (int[])foo();
32 catch (NullPointerException _)
37 throw new RuntimeException("test failed:1");
45 catch (NullPointerException _)
50 throw new RuntimeException("test failed:2");
58 catch (NullPointerException _)
64 throw new RuntimeException("test failed:3");
69 int[] x = (int[])null;
72 catch (NullPointerException _)
77 throw new RuntimeException("test failed:4");
84 catch (NullPointerException _)
89 throw new RuntimeException("test failed:5");