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=T6722234d_1.out -XDrawDiagnostics -XDdiags=where T6722234d.java mcimadamore@288: * @compile/fail/ref=T6722234d_2.out -XDrawDiagnostics -XDdiags=where,simpleNames T6722234d.java mcimadamore@288: */ mcimadamore@288: mcimadamore@288: class T6722234d { mcimadamore@288: interface I1 {} mcimadamore@288: interface I2 {} mcimadamore@288: class A implements I1, I2 {} mcimadamore@288: class B implements I1, I2 {} mcimadamore@288: class Test { mcimadamore@288: Z m(Z z1, Z z2) { return null; } mcimadamore@288: void main(){ mcimadamore@288: A a = m(new A(), new B()); mcimadamore@288: } mcimadamore@288: } mcimadamore@288: }