This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Fake "PASS" for libjava.lang/invokethrow.java



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 _)
       {
       }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]