throwit.out: Fixed output to be correct.

* libjava.jni/throwit.out: Fixed output to be correct.

	* libjava.jni/noclass.java (main): `find_it' throws an exception.

From-SVN: r33291
This commit is contained in:
Tom Tromey 2000-04-20 19:49:14 +00:00 committed by Tom Tromey
parent 1368ee700d
commit dea4b2db61
3 changed files with 18 additions and 5 deletions

View file

@ -11,8 +11,15 @@ public class noclass
public static void main (String[] args)
{
find_it ();
// If find_it() causes a crash, we won't be running this next line.
System.out.println ("Ok");
try
{
find_it ();
}
catch (Throwable _)
{
// If find_it() causes a crash, or doesn't throw an exception,
// we won't be running this next line.
System.out.println ("Ok");
}
}
}