author | peterz |
Fri, 28 May 2010 13:32:40 +0400 | |
changeset 5594 | 3db39773da2e |
parent 3766 | 7e2df99e9223 |
child 39812 | 6272642715a1 |
permissions | -rw-r--r-- |
3540
dceac8629a56
6862608: rich diagnostic sometimes contain wrong type variable numbering
mcimadamore
parents:
diff
changeset
|
1 |
/** |
3766 | 2 |
* @test /nodynamiccopyright/ |
3540
dceac8629a56
6862608: rich diagnostic sometimes contain wrong type variable numbering
mcimadamore
parents:
diff
changeset
|
3 |
* @bug 6862608 |
dceac8629a56
6862608: rich diagnostic sometimes contain wrong type variable numbering
mcimadamore
parents:
diff
changeset
|
4 |
* @summary rich diagnostic sometimes contain wrong type variable numbering |
dceac8629a56
6862608: rich diagnostic sometimes contain wrong type variable numbering
mcimadamore
parents:
diff
changeset
|
5 |
* @author mcimadamore |
dceac8629a56
6862608: rich diagnostic sometimes contain wrong type variable numbering
mcimadamore
parents:
diff
changeset
|
6 |
* @compile/fail/ref=T6862608b.out -XDrawDiagnostics -XDdiags=disambiguateTvars,where T6862608b.java |
dceac8629a56
6862608: rich diagnostic sometimes contain wrong type variable numbering
mcimadamore
parents:
diff
changeset
|
7 |
*/ |
dceac8629a56
6862608: rich diagnostic sometimes contain wrong type variable numbering
mcimadamore
parents:
diff
changeset
|
8 |
|
dceac8629a56
6862608: rich diagnostic sometimes contain wrong type variable numbering
mcimadamore
parents:
diff
changeset
|
9 |
class T66862608b<T extends String, S> { |
dceac8629a56
6862608: rich diagnostic sometimes contain wrong type variable numbering
mcimadamore
parents:
diff
changeset
|
10 |
<S, T extends S> void foo(T t) { |
dceac8629a56
6862608: rich diagnostic sometimes contain wrong type variable numbering
mcimadamore
parents:
diff
changeset
|
11 |
test(t); |
dceac8629a56
6862608: rich diagnostic sometimes contain wrong type variable numbering
mcimadamore
parents:
diff
changeset
|
12 |
} |
dceac8629a56
6862608: rich diagnostic sometimes contain wrong type variable numbering
mcimadamore
parents:
diff
changeset
|
13 |
|
dceac8629a56
6862608: rich diagnostic sometimes contain wrong type variable numbering
mcimadamore
parents:
diff
changeset
|
14 |
void test(T t) {} |
dceac8629a56
6862608: rich diagnostic sometimes contain wrong type variable numbering
mcimadamore
parents:
diff
changeset
|
15 |
} |