mcimadamore@731: /* mcimadamore@731: * @test /nodynamiccopyright/ mcimadamore@731: * @bug 6939780 mcimadamore@731: * mcimadamore@731: * @summary add a warning to detect diamond sites mcimadamore@731: * @author mcimadamore mcimadamore@731: * @compile/ref=T6939780.out T6939780.java -XDrawDiagnostics -XDfindDiamond mcimadamore@731: * mcimadamore@731: */ mcimadamore@731: mcimadamore@731: class T6939780 { mcimadamore@731: mcimadamore@731: void test() { mcimadamore@731: class Foo { mcimadamore@731: Foo() {} mcimadamore@731: Foo(X x) {} mcimadamore@731: } mcimadamore@731: Foo f1 = new Foo(1); mcimadamore@731: Foo f2 = new Foo(); mcimadamore@731: Foo f3 = new Foo(); mcimadamore@731: Foo f4 = new Foo(1) {}; mcimadamore@731: Foo f5 = new Foo() {}; mcimadamore@731: Foo f6 = new Foo() {}; mcimadamore@731: } mcimadamore@731: }