2 // Generated on Wed Feb 2 17:52:49 PST 2000
3 // The instance initializer throws a checked exception. This is OK
4 // since the constructors declares it in its `throws' clause -- at
5 // least that's what the specs are saying.
9 String buffer = "Oink Oink!";
12 System.out.println ("Checking the oink...");
14 throw new Exception ("It just oinked");
17 instinit2 () throws Exception
19 System.out.println ("Ctor");
22 public static void main (String[] arg)
24 System.out.println ("Testing class `instinit2'...");
26 System.out.println (new instinit2 ().buffer);
27 } catch (Exception e) {
28 System.out.println (e.toString());