Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / libjava / testsuite / libjava.lang / instinit2.java
blobdcab178eca8752d5c6a89633d5f22dd6923708d3
1 // Class instinit2
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.
7 class instinit2 {
9 String buffer = "Oink Oink!";
12 System.out.println ("Checking the oink...");
13 if (buffer != null)
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'...");
25 try {
26 System.out.println (new instinit2 ().buffer);
27 } catch (Exception e) {
28 System.out.println (e.toString());