changeset 8228 | 4e6ee38974b2 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/langtools/test/tools/javac/generics/6910550/T6910550a.java Fri Jan 28 12:01:07 2011 +0000 @@ -0,0 +1,16 @@ +/* + * @test /nodynamiccopyright/ + * @bug 6910550 + * + * @summary javac 1.5.0_17 fails with incorrect error message + * @compile/fail/ref=T6910550a.out -XDrawDiagnostics T6910550a.java + * + */ +import java.util.*; + +class T6910550a { + void m(List<String> ls) {} + void m(List<Integer> li) {} + + { m(Arrays.asList(12)); } +}