This is the mail archive of the java-patches@sourceware.cygnus.com 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]

Patch: new test


I'm committing the appended patch.
It adds a new test case for try/finally.

1999-08-25  Tom Tromey  <tromey@cygnus.com>

	* libjava.lang/G19990310_01.out: New file.
	* libjava.lang/G19990310_01.java: New file.

Tom

Index: libjava.lang/G19990310_01.java
===================================================================
RCS file: G19990310_01.java
diff -N G19990310_01.java
--- /dev/null	Sat Dec  5 20:30:03 1998
+++ G19990310_01.java	Wed Aug 25 10:52:58 1999
@@ -0,0 +1,21 @@
+public class G19990310_01
+{
+  public static void main (String[] args)
+  {
+    int i = 0;
+    try
+      {
+	System.out.println ("pass 1");
+	i++;
+      }
+    finally
+      {
+	System.out.println ("pass 2");
+	i++;
+      }
+    if (i == 2)
+      System.out.println ("OK");
+    else
+      System.out.println ("NG i = " + i);
+  }
+}
Index: libjava.lang/G19990310_01.out
===================================================================
RCS file: G19990310_01.out
diff -N G19990310_01.out
--- /dev/null	Sat Dec  5 20:30:03 1998
+++ G19990310_01.out	Wed Aug 25 10:52:58 1999
@@ -0,0 +1,3 @@
+pass 1
+pass 2
+OK

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