This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Fake "PASS" for libjava.lang/invokethrow.java
- To: java-patches at gcc dot gnu dot org
- Subject: Fake "PASS" for libjava.lang/invokethrow.java
- From: Anthony Green <green at redhat dot com>
- Date: Sat, 2 Jun 2001 02:17:38 -0700
- Reply-to: green at cygnus dot com
I'm checking this into the trunk, as was discussed with Tromey
recently in this list.
AG
2001-06-02 Anthony Green <green@redhat.com>
* libjava.lang/invokethrow.java: Fake a pass for systems which
don't support invocation.
Index: testsuite/libjava.lang//invokethrow.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/testsuite/libjava.lang/invokethrow.java,v
retrieving revision 1.1
diff -u -p -r1.1 invokethrow.java
--- invokethrow.java 2001/05/30 15:23:23 1.1
+++ invokethrow.java 2001/06/02 09:15:03
@@ -22,6 +22,12 @@ public class invokethrow
{
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 _)
{
}