aoqi@0: /** aoqi@0: * @test /nodynamiccopyright/ aoqi@0: * @bug 6717241 aoqi@0: * @summary some diagnostic argument is prematurely converted into a String object aoqi@0: * @author Maurizio Cimadamore aoqi@0: * @compile/fail/ref=T6717241b.out -XDrawDiagnostics T6717241b.java aoqi@0: */ aoqi@0: aoqi@0: class T6717241b { aoqi@0: void test() { aoqi@0: //this will generate a 'cant.resolve.location' aoqi@0: Object o = v; aoqi@0: //this will generate a 'cant.resolve.location.args' aoqi@0: m1(1, ""); aoqi@0: //this will generate a 'cant.resolve.location.args.params' aoqi@0: T6717241b.m2(1, ""); aoqi@0: } aoqi@0: }