aoqi@0: /* aoqi@0: * @test /nodynamiccopyright/ aoqi@0: * @bug 6840059 aoqi@0: * @summary 6758789: Some method resolution diagnostic should be improved aoqi@0: * @author Maurizio Cimadamore aoqi@0: * aoqi@0: * @compile/fail/ref=T6840059.out -XDrawDiagnostics T6840059.java aoqi@0: */ aoqi@0: aoqi@0: class T6840059 { aoqi@0: aoqi@0: T6840059(Integer x) {} aoqi@0: aoqi@0: void test() { aoqi@0: new T6840059(""){}; aoqi@0: } aoqi@0: }