summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/pr184.java
blob: 42175b38e9d174f2565cb8b66550a06c894fb456 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;
  };
}