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