mcimadamore@161: /* jjg@384: * @test /nodynamiccopyright/ mcimadamore@161: * @bug 6758789 mcimadamore@161: * @summary 6758789: Some method resolution diagnostic should be improved mcimadamore@161: * @author Maurizio Cimadamore mcimadamore@161: * mcimadamore@161: * @compile/fail/ref=T6758789b.out -Werror -XDrawDiagnostics -Xlint:unchecked T6758789b.java mcimadamore@161: */ mcimadamore@161: mcimadamore@161: class T6758789a { mcimadamore@161: class Foo {} mcimadamore@161: mcimadamore@161: void m(Foo foo) {} mcimadamore@161: mcimadamore@161: void test() { mcimadamore@161: m(new Foo()); mcimadamore@161: } mcimadamore@161: }