This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
More test code
- To: java-patches at sourceware dot cygnus dot com
- Subject: More test code
- From: Anthony Green <green at cygnus dot com>
- Date: Sat, 12 Feb 2000 15:09:40 -0800
- Reply-to: green at redhat dot com
I'm committing the following test case...
2000-02-12 Anthony Green <green@cygnus.com>
* libjava.compile/assignment.java: New file.
Index: assignment.java
===================================================================
RCS file: assignment.java
diff -N assignment.java
--- /dev/null Tue May 5 13:32:27 1998
+++ assignment.java Sat Feb 12 15:07:29 2000
@@ -0,0 +1,19 @@
+// A definite assignment test.
+
+public class assignment
+{
+ public static Byte foo ()
+ {
+ Byte b;
+
+ while (true) {
+ try {
+ b = Byte.decode ("42");
+ break;
+ } catch (NumberFormatException ignored) {}
+ }
+
+ return b;
+ }
+}
+
--
Anthony Green Red Hat
Sunnyvale, California