diff -r 000000000000 -r 959103a6100f test/tools/javac/Diagnostics/6722234/T6722234b.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/tools/javac/Diagnostics/6722234/T6722234b.java Wed Apr 27 01:34:52 2016 +0800 @@ -0,0 +1,18 @@ +/** + * @test /nodynamiccopyright/ + * @bug 6722234 + * @summary javac diagnostics need better integration with the type-system + * @author mcimadamore + * @compile/fail/ref=T6722234b_1.out -XDrawDiagnostics -XDdiags=simpleNames T6722234b.java + * @compile/fail/ref=T6722234b_2.out -XDrawDiagnostics -XDdiags=simpleNames,where T6722234b.java + */ + +import java.util.*; + +class T6722234b { + void m(List l1, List l2) {} + + void test(List list) { + m(list, list); + } +}