This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Patch: another JDK 1.1 test
- To: Java Patch List <java-patches at sourceware dot cygnus dot com>
- Subject: Patch: another JDK 1.1 test
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 21 Jan 2000 14:15:09 -0700
- Reply-To: tromey at cygnus dot com
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
+ }
+ }
+}