langtools/test/tools/javac/6717241/T6717241b.java
author jjg
Fri, 09 Apr 2010 15:39:39 -0700
changeset 5319 63dc7f367a37
parent 3766 7e2df99e9223
child 6150 d055fa8ced62
permissions -rw-r--r--
6942649: add hidden option to identify location and version of javac classes Reviewed-by: darcy

/**
 * @test /nodynamiccopyright/
 * @bug     6717241
 * @summary some diagnostic argument is prematurely converted into a String object
 * @author  Maurizio Cimadamore
 * @compile/fail/ref=T6717241b.out -XDstdout -XDrawDiagnostics T6717241b.java
 */

class T6717241b {
    void test() {
        //this will generate a 'cant.resolve.location'
        Object o = v;
        //this will generate a 'cant.resolve.location.args'
        m1(1, "");
        //this will generate a 'cant.resolve.location.args.params'
        T6717241b.<Integer,Double>m2(1, "");
    }
}