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
This commit is contained in:
Bryce McKinlay 1999-07-05 19:54:41 +00:00 committed by Bryce McKinlay
parent 83233dca78
commit 58aa6bf059
3 changed files with 26 additions and 0 deletions

View File

@ -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.

View File

@ -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");
}
}

View File

@ -0,0 +1 @@
NullPointerException - ok