1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/tools/javac/Diagnostics/6722234/T6722234b.java Wed Apr 27 01:34:52 2016 +0800 1.3 @@ -0,0 +1,18 @@ 1.4 +/** 1.5 + * @test /nodynamiccopyright/ 1.6 + * @bug 6722234 1.7 + * @summary javac diagnostics need better integration with the type-system 1.8 + * @author mcimadamore 1.9 + * @compile/fail/ref=T6722234b_1.out -XDrawDiagnostics -XDdiags=simpleNames T6722234b.java 1.10 + * @compile/fail/ref=T6722234b_2.out -XDrawDiagnostics -XDdiags=simpleNames,where T6722234b.java 1.11 + */ 1.12 + 1.13 +import java.util.*; 1.14 + 1.15 +class T6722234b { 1.16 + <T> void m(List<T> l1, List<T> l2) {} 1.17 + 1.18 + void test(List<? extends T6722234b> list) { 1.19 + m(list, list); 1.20 + } 1.21 +}