mcimadamore@1415: /* mcimadamore@1415: * @test /nodynamiccopyright/ mcimadamore@1415: * @bug 8003280 mcimadamore@1415: * @summary Add lambda tests mcimadamore@1415: * check that wildcards in the target method of a lambda conversion is handled correctly mcimadamore@1415: * @author Maurizio Cimadamore mcimadamore@1510: * @compile TargetType11.java mcimadamore@1415: */ mcimadamore@1415: mcimadamore@1415: class TargetType11 { mcimadamore@1415: interface Predicate { mcimadamore@1415: boolean apply(X c); mcimadamore@1415: } mcimadamore@1415: mcimadamore@1415: static class Test { mcimadamore@1415: public Predicate and(Predicate... first) { return null; } mcimadamore@1415: public Predicate forPredicate(Predicate predicate) { return null; } mcimadamore@1415: mcimadamore@1415: Predicate c2 = forPredicate(c -> c.compareTo('e') < 0); mcimadamore@1415: Predicate k = and(i -> i > 0, i -> i % 2 == 0); mcimadamore@1415: } mcimadamore@1415: }