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]
Other format: [Raw text]

Throw_2.java


Some systems "pass" this test if they exit and produce no output.

Andrew.


2003-04-16  Andrew Haley  <aph at redhat dot com>

	* libjava.lang/Throw_2.java (main): Make a successful test produce
	some output.

Index: Throw_2.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/testsuite/libjava.lang/Throw_2.java,v
retrieving revision 1.2
diff -u -r1.2 Throw_2.java
--- Throw_2.java	28 Mar 2002 16:24:21 -0000	1.2
+++ Throw_2.java	16 Apr 2003 11:39:43 -0000
@@ -34,6 +34,7 @@
 	}
       catch (NullPointerException _)
 	{
+	  System.out.println ("1");
 	}
       catch (Throwable _)
 	{
@@ -48,6 +49,7 @@
 	}
       catch (NullPointerException _)
 	{
+	  System.out.println ("2");
 	}
       catch (Throwable _)
 	{
Index: Throw_2.out
===================================================================
RCS file: /cvs/gcc/gcc/libjava/testsuite/libjava.lang/Throw_2.out,v
retrieving revision 1.2
diff -u -r1.2 Throw_2.out
--- Throw_2.out	28 Mar 2002 16:24:21 -0000	1.2
+++ Throw_2.out	16 Apr 2003 11:39:43 -0000
@@ -0,0 +1,2 @@
+1
+2


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