This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Patch: another test case
- To: Java Patch List <java-patches@sourceware.cygnus.com>
- Subject: Patch: another test case
- From: Tom Tromey <tromey@cygnus.com>
- Date: 25 Aug 1999 12:42:07 -0600
- Reply-To: tromey@cygnus.com
I'm committing the appended patch. This adds a new test case. This
used to fail on at least one target; I'm adding it for regression
purposes.
1999-08-25 Tom Tromey <tromey@cygnus.com>
* libjava.toshiba/G19990304_01.out: New file.
* libjava.toshiba/G19990304_01.java: New file.
Tom
Index: libjava.lang/G19990304_01.java
===================================================================
RCS file: G19990304_01.java
diff -N G19990304_01.java
--- /dev/null Sat Dec 5 20:30:03 1998
+++ G19990304_01.java Wed Aug 25 11:38:18 1999
@@ -0,0 +1,18 @@
+public class G19990304_01
+{
+ public static void main (String[] args)
+ {
+ Object[] arrayObj = new String[3];
+ String[] arrayStr = new String[3];
+ try
+ {
+ System.out.println ("pass 1");
+ arrayObj[0] = arrayStr;
+ }
+ catch (RuntimeException e)
+ {
+ System.out.println ("RuntimeException");
+ }
+ System.out.println ("pass 2");
+ }
+}
Index: libjava.lang/G19990304_01.out
===================================================================
RCS file: G19990304_01.out
diff -N G19990304_01.out
--- /dev/null Sat Dec 5 20:30:03 1998
+++ G19990304_01.out Wed Aug 25 11:38:18 1999
@@ -0,0 +1,3 @@
+pass 1
+RuntimeException
+pass 2