summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/pr16789.java
blob: 64c43f30417e60f2bc3817b61041cf134be3d063 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// gcj used to generate incorrect bytecode for
// staticMethod().staticMethod()
public class pr16789
{
  public void foo()
  {
    System.out.println(Thread.currentThread().holdsLock(this));
  }

  public static void main(String[] args)
  {
    new pr16789().foo();
  }
}