mcimadamore@299: /* jjg@384: * @test /nodynamiccopyright/ mcimadamore@299: * @bug 6638712 6707034 mcimadamore@299: * @author mcimadamore mcimadamore@299: * @summary Inference with wildcard types causes selection of inapplicable method mcimadamore@299: * @compile/fail/ref=T6638712c.out -XDrawDiagnostics T6638712c.java mcimadamore@299: */ mcimadamore@299: mcimadamore@299: import java.util.*; mcimadamore@299: mcimadamore@299: class T6638712c { mcimadamore@299: mcimadamore@299: T sort(T[] a, Comparator c) { return null; } mcimadamore@299: mcimadamore@299: void test(Enum[] e, Comparator> comp) { mcimadamore@299: sort(e, comp); mcimadamore@299: } mcimadamore@299: }