mcimadamore@342: /** jjg@384: * @test /nodynamiccopyright/ mcimadamore@342: * @bug 6862608 mcimadamore@342: * @summary rich diagnostic sometimes contain wrong type variable numbering mcimadamore@342: * @author mcimadamore mcimadamore@342: * @compile/fail/ref=T6862608a.out -XDrawDiagnostics -XDdiags=disambiguateTvars,where T6862608a.java mcimadamore@342: */ mcimadamore@342: mcimadamore@342: mcimadamore@342: import java.util.*; mcimadamore@342: mcimadamore@342: class T6862608a { mcimadamore@342: mcimadamore@342: Comparator compound(Iterable> it) { mcimadamore@342: return null; mcimadamore@342: } mcimadamore@342: mcimadamore@342: public void test(List> x) { mcimadamore@342: Comparator c3 = compound(x); mcimadamore@342: } mcimadamore@342: }