1 // gcj used to generate incorrect bytecode for
2 // staticMethod().staticMethod()
3 public class pr16789
4 {
foo()5   public void foo()
6   {
7     System.out.println(Thread.currentThread().holdsLock(this));
8   }
9 
main(String[] args)10   public static void main(String[] args)
11   {
12     new pr16789().foo();
13   }
14 }
15 
16