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