author | jjg |
Thu, 27 Aug 2009 11:08:27 -0700 | |
changeset 3766 | 7e2df99e9223 |
parent 939 | 38e24969c7e9 |
child 6150 | d055fa8ced62 |
permissions | -rw-r--r-- |
939
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff
changeset
|
1 |
/** |
3766 | 2 |
* @test /nodynamiccopyright/ |
939
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff
changeset
|
3 |
* @bug 6717241 |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff
changeset
|
4 |
* @summary some diagnostic argument is prematurely converted into a String object |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff
changeset
|
5 |
* @author Maurizio Cimadamore |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff
changeset
|
6 |
* @compile/fail/ref=T6717241b.out -XDstdout -XDrawDiagnostics T6717241b.java |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff
changeset
|
7 |
*/ |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff
changeset
|
8 |
|
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff
changeset
|
9 |
class T6717241b { |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff
changeset
|
10 |
void test() { |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff
changeset
|
11 |
//this will generate a 'cant.resolve.location' |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff
changeset
|
12 |
Object o = v; |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff
changeset
|
13 |
//this will generate a 'cant.resolve.location.args' |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff
changeset
|
14 |
m1(1, ""); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff
changeset
|
15 |
//this will generate a 'cant.resolve.location.args.params' |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff
changeset
|
16 |
T6717241b.<Integer,Double>m2(1, ""); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff
changeset
|
17 |
} |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff
changeset
|
18 |
} |