3 public static class fail
7 // Static initializers must be able to complete normally.
9 throw new NullPointerException("nope");
12 public static int val ()
18 public static void main (String[] args)
22 System.out.println (fail.val ());
24 catch (ExceptionInInitializerError _)
30 System.out.println (fail.val ());
32 catch (NoClassDefFoundError _)