From 58aa6bf05914dd034bb4034049f6857de71da45f Mon Sep 17 00:00:00 2001 From: Bryce McKinlay Date: Mon, 5 Jul 1999 19:54:41 +0000 Subject: [PATCH] Final.java: Added. 1999-07-05 Bryce McKinlay * libjava.lang/Final.java: Added. * libjava.lang/Final.out: Added. From-SVN: r27949 --- libjava/testsuite/ChangeLog | 5 +++++ libjava/testsuite/libjava.lang/Final.java | 20 ++++++++++++++++++++ libjava/testsuite/libjava.lang/Final.out | 1 + 3 files changed, 26 insertions(+) create mode 100644 libjava/testsuite/libjava.lang/Final.java create mode 100644 libjava/testsuite/libjava.lang/Final.out diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog index 078b9b35481..30f67d6ea17 100644 --- a/libjava/testsuite/ChangeLog +++ b/libjava/testsuite/ChangeLog @@ -1,3 +1,8 @@ +1999-07-05 Bryce McKinlay + + * libjava.lang/Final.java: Added. + * libjava.lang/Final.out: Added. + 1999-07-02 Tom Tromey * 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 00000000000..1b22096c359 --- /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 00000000000..2e513123d7c --- /dev/null +++ b/libjava/testsuite/libjava.lang/Final.out @@ -0,0 +1 @@ +NullPointerException - ok