diff -r 000000000000 -r 959103a6100f test/tools/javac/6717241/T6717241b.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/tools/javac/6717241/T6717241b.java Wed Apr 27 01:34:52 2016 +0800 @@ -0,0 +1,18 @@ +/** + * @test /nodynamiccopyright/ + * @bug 6717241 + * @summary some diagnostic argument is prematurely converted into a String object + * @author Maurizio Cimadamore + * @compile/fail/ref=T6717241b.out -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.m2(1, ""); + } +}