mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-22 12:00:03 -05:00
* 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;
|
|
};
|
|
}
|