jdk-24/langtools/test/tools/javac/6717241/T6717241b.java
Jonathan Gibbons ccd014ed3f 6971882: Remove -XDstdout from javac test
Reviewed-by: darcy
2010-07-26 14:18:45 -07:00

19 lines
554 B
Java

/**
* @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.<Integer,Double>m2(1, "");
}
}