Wed, 27 Apr 2016 01:34:52 +0800
Initial load
http://hg.openjdk.java.net/jdk8u/jdk8u/langtools/
changeset: 2573:53ca196be1ae
tag: jdk8u25-b17
aoqi@0 | 1 | /** |
aoqi@0 | 2 | * @test /nodynamiccopyright/ |
aoqi@0 | 3 | * @bug 6722234 |
aoqi@0 | 4 | * @summary javac diagnostics need better integration with the type-system |
aoqi@0 | 5 | * @author mcimadamore |
aoqi@0 | 6 | * @compile/fail/ref=T6722234d_1.out -XDrawDiagnostics -XDdiags=where T6722234d.java |
aoqi@0 | 7 | * @compile/fail/ref=T6722234d_2.out -XDrawDiagnostics -XDdiags=where,simpleNames T6722234d.java |
aoqi@0 | 8 | */ |
aoqi@0 | 9 | |
aoqi@0 | 10 | class T6722234d { |
aoqi@0 | 11 | interface I1 {} |
aoqi@0 | 12 | interface I2 {} |
aoqi@0 | 13 | class A implements I1, I2 {} |
aoqi@0 | 14 | class B implements I1, I2 {} |
aoqi@0 | 15 | class Test { |
aoqi@0 | 16 | <Z> Z m(Z z1, Z z2) { return null; } |
aoqi@0 | 17 | void main(){ |
aoqi@0 | 18 | A a = m(new A(), new B()); |
aoqi@0 | 19 | } |
aoqi@0 | 20 | } |
aoqi@0 | 21 | } |