/* * @test /nodynamiccopyright/ * @bug 8038182 * @summary javac crash with FunctionDescriptorLookupError for invalid functional interface * @compile/fail/ref=CrashFunctionDescriptorExceptionTest.out -XDrawDiagnostics CrashFunctionDescriptorExceptionTest.java */ class CrashFunctionDescriptorExceptionTest { @SuppressWarnings("unchecked") void m () { bar((B b) -> {}); } > void bar(I i) {} class A {} class B extends A {} interface I> { void foo(E e); } }