mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-24 06:28:53 +08:00
09b189bf69
* libjava.lang/pr184.java: New file. * libjava.lang/pr184.out: New file. From-SVN: r32796
23 lines
264 B
Java
23 lines
264 B
Java
public class pr184
|
|
{
|
|
public static void main(String[] args)
|
|
{
|
|
pr184 n = null;
|
|
try
|
|
{
|
|
n.foo();
|
|
}
|
|
catch (NullPointerException x)
|
|
{
|
|
System.out.println(x);
|
|
}
|
|
}
|
|
|
|
int x = 2;
|
|
|
|
final int foo()
|
|
{
|
|
return x;
|
|
};
|
|
}
|