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]

More test code



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

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