diff -r 000000000000 -r 959103a6100f test/tools/javac/Diagnostics/6862608/T6862608a.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/tools/javac/Diagnostics/6862608/T6862608a.java Wed Apr 27 01:34:52 2016 +0800 @@ -0,0 +1,21 @@ +/** + * @test /nodynamiccopyright/ + * @bug 6862608 + * @summary rich diagnostic sometimes contain wrong type variable numbering + * @author mcimadamore + * @compile/fail/ref=T6862608a.out -XDrawDiagnostics -XDdiags=disambiguateTvars,where T6862608a.java + */ + + +import java.util.*; + +class T6862608a { + + Comparator compound(Iterable> it) { + return null; + } + + public void test(List> x) { + Comparator c3 = compound(x); + } +}