mcimadamore@299: /* jjg@384: * @test /nodynamiccopyright/ mcimadamore@299: * @bug 6638712 6795689 mcimadamore@299: * @author mcimadamore mcimadamore@299: * @summary Inference with wildcard types causes selection of inapplicable method mcimadamore@299: * @compile/fail/ref=T6638712e.out -XDrawDiagnostics T6638712e.java mcimadamore@299: */ mcimadamore@299: mcimadamore@299: class T6638712e { mcimadamore@299: mcimadamore@299: static class Foo { mcimadamore@299: Foo m(Foo foo) { return null;} mcimadamore@299: } mcimadamore@299: mcimadamore@299: static class Test { mcimadamore@299: Foo test(Foo foo1, Foo foo2) { mcimadamore@299: return foo1.m(foo2); mcimadamore@299: } mcimadamore@299: } mcimadamore@299: }