1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/tools/javac/6758789/T6758789b.java Wed Apr 27 01:34:52 2016 +0800 1.3 @@ -0,0 +1,18 @@ 1.4 +/* 1.5 + * @test /nodynamiccopyright/ 1.6 + * @bug 6758789 1.7 + * @summary 6758789: Some method resolution diagnostic should be improved 1.8 + * @author Maurizio Cimadamore 1.9 + * 1.10 + * @compile/fail/ref=T6758789b.out -Werror -XDrawDiagnostics -Xlint:unchecked T6758789b.java 1.11 + */ 1.12 + 1.13 +class T6758789a { 1.14 + class Foo<T> {} 1.15 + 1.16 + <X> void m(Foo<X> foo) {} 1.17 + 1.18 + void test() { 1.19 + m(new Foo()); 1.20 + } 1.21 +}