2008-07-24 18:06:57 +00:00
|
|
|
/**
|
2009-08-27 18:08:27 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2008-07-24 18:06:57 +00:00
|
|
|
* @bug 6717241
|
|
|
|
* @summary some diagnostic argument is prematurely converted into a String object
|
|
|
|
* @author Maurizio Cimadamore
|
2010-07-26 21:18:45 +00:00
|
|
|
* @compile/fail/ref=T6717241a.out -XDrawDiagnostics T6717241a.java
|
2008-07-24 18:06:57 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
class T6717241a<X extends Object & java.io.Serializable> {
|
|
|
|
X x;
|
|
|
|
void test() {
|
|
|
|
//this will generate a 'cant.resolve'
|
|
|
|
Object o = x.v;
|
|
|
|
//this will generate a 'cant.resolve.args'
|
|
|
|
x.m1(1, "");
|
|
|
|
//this will generate a 'cant.resolve.args.params'
|
|
|
|
x.<Integer,Double>m2(1, "");
|
|
|
|
}
|
|
|
|
}
|