Patch: another JDK 1.1 test

Tom Tromey tromey@cygnus.com
Fri Jan 21 13:13:00 GMT 2000


I'm checking in this patch, which adds a test for JDK 1.1 "blank
final" variables.

2000-01-20  Tom Tromey  <tromey@cygnus.com>

        * libjava.compile/BlankFinal.java: New file.

Tom

Index: libjava.compile/BlankFinal.java
===================================================================
RCS file: BlankFinal.java
diff -N BlankFinal.java
--- /dev/null	Tue May  5 13:32:27 1998
+++ BlankFinal.java	Fri Jan 21 13:11:49 2000
@@ -0,0 +1,16 @@
+// Test to see if "blank final" variables work.
+// From Mo DeJong <mdejong@cygnus.com>
+
+public class BlankFinal {
+    static final boolean cond;
+
+    static {
+        try
+        {
+            cond = true;
+        }
+        catch(Exception e) {
+            // do nothing
+        }
+    }
+}


More information about the Java-patches mailing list