mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-13 00:30:51 +08:00
0a08595abd
PR java/16789: * testsuite/libjava.lang/pr16789.out: New file. * testsuite/libjava.lang/pr16789.java: New file. From-SVN: r88046
16 lines
273 B
Java
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();
|
|
}
|
|
}
|
|
|