mcimadamore@1415: /* mcimadamore@1415: * @test /nodynamiccopyright/ mcimadamore@1415: * @bug 8003280 mcimadamore@1415: * @summary Add lambda tests mcimadamore@1415: * bad stuck check for method reference leads to javac crash mcimadamore@1415: * @compile/fail/ref=TargetType50.out -XDrawDiagnostics TargetType50.java mcimadamore@1415: */ mcimadamore@1415: import java.util.*; mcimadamore@1415: mcimadamore@1415: class TargetType50 { mcimadamore@1415: mcimadamore@1415: interface Factory { mcimadamore@1415: F make(); mcimadamore@1415: } mcimadamore@1415: mcimadamore@1415: static class Sink { mcimadamore@1415: static Sink make() { return null; } mcimadamore@1415: } mcimadamore@1415: mcimadamore@1415: > List m(Factory factory) { } mcimadamore@1415: mcimadamore@1415: void test() { mcimadamore@1415: List l1 = m(Sink::new); mcimadamore@1415: List l2 = m(Sink::make); mcimadamore@1415: List l3 = m(Sink::new); mcimadamore@1415: List l4 = m(Sink::make); mcimadamore@1415: } mcimadamore@1415: }