mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-05 04:50:00 +08:00
58aa6bf059
1999-07-05 Bryce McKinlay <bryce@albatross.co.nz> * libjava.lang/Final.java: Added. * libjava.lang/Final.out: Added. From-SVN: r27949
21 lines
363 B
Java
21 lines
363 B
Java
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");
|
|
}
|
|
}
|