Retro68/gcc/libjava/testsuite/libjava.lang/pr16789.java
Wolfgang Thaller aaf905ce07 add gcc 4.70
2012-03-28 01:13:14 +02:00

16 lines
273 B
Java

// 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();
}
}