inline: insert sync on class object when static sync method is inlined (IDEA-65449)

This commit is contained in:
anna
2011-02-14 14:14:32 +01:00
parent 9b28b9cf01
commit 13d5d02daa
4 changed files with 57 additions and 16 deletions
@@ -0,0 +1,15 @@
public class TestIntelliJ
{
public synchronized void foo() {
System.out.println("foo");
}
public static void main(String[] args) {
TestIntelliJ test = new TestIntelliJ();
test.foo();
synchronized (TestIntelliJ.class) {
System.out.println("fooStatic");
}
}
}