de9127c1b7
* libjava.lang/instinit2.out: New file. * libjava.lang/instinit2.java: New file. * libjava.lang/instinit.out: New file. * libjava.lang/instinit.java: New file. * libjava.lang/anonarray2.out: New file. * libjava.lang/anonarray2.java: New file. * libjava.lang/anonarray.out: New file. * libjava.lang/anonarray.java: New file. * libjava.lang/nested_with_ctor.out: New file. * libjava.lang/nested_with_ctor.java: New file. * libjava.lang/anfi.out: New file. * libjava.lang/anfi.java: New file. * libjava.lang/stub.out: New file. * libjava.lang/stub.java: New file. From-SVN: r31841
32 lines
776 B
Java
32 lines
776 B
Java
// Class ii2
|
|
// Generated on Wed Feb 2 17:52:49 PST 2000
|
|
// The instance initializer throws a checked exception. This is OK
|
|
// since the constructors declares it in its `throws' clause -- at
|
|
// least that's what the specs are saying.
|
|
|
|
class ii2 {
|
|
|
|
String buffer = "Oink Oink!";
|
|
|
|
{
|
|
System.out.println ("Checking the oink...");
|
|
if (buffer != null)
|
|
throw new Exception ("It just oinked");
|
|
}
|
|
|
|
ii2 () throws Exception
|
|
{
|
|
System.out.println ("Ctor");
|
|
}
|
|
|
|
public static void main (String[] arg)
|
|
{
|
|
System.out.println ("Testing class `ii2'...");
|
|
try {
|
|
System.out.println (new ii2 ().buffer);
|
|
} catch (Exception e) {
|
|
System.out.println (e.toString());
|
|
}
|
|
}
|
|
}
|