mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-30 07:14:09 +08:00
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:
parent
83233dca78
commit
58aa6bf059
@ -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.
|
||||
|
20
libjava/testsuite/libjava.lang/Final.java
Normal file
20
libjava/testsuite/libjava.lang/Final.java
Normal 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");
|
||||
}
|
||||
}
|
1
libjava/testsuite/libjava.lang/Final.out
Normal file
1
libjava/testsuite/libjava.lang/Final.out
Normal file
@ -0,0 +1 @@
|
||||
NullPointerException - ok
|
Loading…
Reference in New Issue
Block a user