--- /dev/null 2010-09-02 14:18:54.344000001 +0100 +++ new/test/tools/javac/generics/inference/6638712/T6638712b.java 2010-09-10 17:47:49.722140148 +0100 @@ -0,0 +1,16 @@ +/* + * @test /nodynamiccopyright/ + * @bug 6638712 + * @author mcimadamore + * @summary Inference with wildcard types causes selection of inapplicable method + * @compile/fail/ref=T6638712b.out -XDrawDiagnostics T6638712b.java + */ + +class T6638712b { + + , T> T m(I test) { return null; } + + void test(T6638712b x) { + String i = m(x); + } +}