mcimadamore@299: /* jjg@384: * @test /nodynamiccopyright/ mcimadamore@299: * @bug 6638712 mcimadamore@299: * @author mcimadamore mcimadamore@299: * @summary Inference with wildcard types causes selection of inapplicable method mcimadamore@299: * @compile/fail/ref=T6638712a.out -XDrawDiagnostics T6638712a.java mcimadamore@299: */ mcimadamore@299: mcimadamore@299: import java.util.*; mcimadamore@299: mcimadamore@299: class T6638712a { mcimadamore@299: mcimadamore@299: Comparator compound(Iterable> it) {} mcimadamore@299: mcimadamore@299: public void test(List> x) { mcimadamore@299: Comparator c3 = compound(x); mcimadamore@299: } mcimadamore@299: }