mcimadamore@288: /** jjg@384: * @test /nodynamiccopyright/ mcimadamore@288: * @bug 6722234 mcimadamore@288: * @summary javac diagnostics need better integration with the type-system mcimadamore@288: * @author mcimadamore mcimadamore@288: * @compile/fail/ref=T6722234b_1.out -XDrawDiagnostics -XDdiags=simpleNames T6722234b.java mcimadamore@288: * @compile/fail/ref=T6722234b_2.out -XDrawDiagnostics -XDdiags=simpleNames,where T6722234b.java mcimadamore@288: */ mcimadamore@288: mcimadamore@288: import java.util.*; mcimadamore@288: mcimadamore@288: class T6722234b { mcimadamore@288: void m(List l1, List l2) {} mcimadamore@288: mcimadamore@288: void test(List list) { mcimadamore@288: m(list, list); mcimadamore@288: } mcimadamore@288: }