aboutsummaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorBryce McKinlay <bryce@albatross.co.nz>1999-07-05 19:54:41 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>1999-07-05 20:54:41 +0100
commit58aa6bf05914dd034bb4034049f6857de71da45f (patch)
tree70f4bfd8e456394383509cc1079a67e4fc8b898e /libjava
parent83233dca785ac7a448782260bcea654bdd87732f (diff)
downloadgcc-58aa6bf05914dd034bb4034049f6857de71da45f.zip
gcc-58aa6bf05914dd034bb4034049f6857de71da45f.tar.gz
gcc-58aa6bf05914dd034bb4034049f6857de71da45f.tar.bz2
Final.java: Added.
1999-07-05 Bryce McKinlay <bryce@albatross.co.nz> * libjava.lang/Final.java: Added. * libjava.lang/Final.out: Added. From-SVN: r27949
Diffstat (limited to 'libjava')
-rw-r--r--libjava/testsuite/ChangeLog5
-rw-r--r--libjava/testsuite/libjava.lang/Final.java20
-rw-r--r--libjava/testsuite/libjava.lang/Final.out1
3 files changed, 26 insertions, 0 deletions
diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog
index 078b9b3..30f67d6 100644
--- a/libjava/testsuite/ChangeLog
+++ b/libjava/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+1999-07-05 Bryce McKinlay <bryce@albatross.co.nz>
+
+ * libjava.lang/Final.java: Added.
+ * libjava.lang/Final.out: Added.
+
1999-07-02 Tom Tromey <tromey@cygnus.com>
* libjava.lang/Finalize_1.out: Removed.
diff --git a/libjava/testsuite/libjava.lang/Final.java b/libjava/testsuite/libjava.lang/Final.java
new file mode 100644
index 0000000..1b22096
--- /dev/null
+++ b/libjava/testsuite/libjava.lang/Final.java
@@ -0,0 +1,20 @@
+public final class Final
+{
+ public static void main(String args[])
+ {
+ Final f = null;
+ try
+ {
+ f.doSomething();
+ }
+ catch (NullPointerException x)
+ {
+ System.out.println("NullPointerException - ok");
+ }
+ }
+
+ void doSomething()
+ {
+ System.out.println("This should not happen");
+ }
+}
diff --git a/libjava/testsuite/libjava.lang/Final.out b/libjava/testsuite/libjava.lang/Final.out
new file mode 100644
index 0000000..2e51312
--- /dev/null
+++ b/libjava/testsuite/libjava.lang/Final.out
@@ -0,0 +1 @@
+NullPointerException - ok