Fake a PASS for targets which don't support invocation.

From-SVN: r42792
This commit is contained in:
Anthony Green 2001-06-02 09:18:14 +00:00 committed by Anthony Green
parent c8fb98139d
commit 87596d9c92
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2001-06-02 Anthony Green <green@redhat.com>
* libjava.lang/invokethrow.java: Fake a pass for systems which
don't support invocation.
2001-05-30 Tom Tromey <tromey@redhat.com> 2001-05-30 Tom Tromey <tromey@redhat.com>
* libjava.lang/invokethrow.out: New file. * libjava.lang/invokethrow.out: New file.

View File

@ -22,6 +22,12 @@ public class invokethrow
{ {
System.out.println (x1.getTargetException ().getMessage ()); System.out.println (x1.getTargetException ().getMessage ());
} }
catch (UnsupportedOperationException _)
{
// Some systems don't support invocation, in which case we
// will fake a passing result.
System.out.println ("hi!");
}
catch (Throwable _) catch (Throwable _)
{ {
} }