test/tools/javac/lambda/T8038182/CrashFunctionDescriptorExceptionTest.java

Mon, 23 Jun 2014 13:14:32 -0700

author
rfield
date
Mon, 23 Jun 2014 13:14:32 -0700
changeset 2528
eb284abd64fe
parent 0
959103a6100f
permissions
-rw-r--r--

8046060: Different results of floating point multiplication for lambda code block
Summary: propogate strictfp into lambda body
Reviewed-by: vromero, jlahoda

     1 /*
     2  * @test /nodynamiccopyright/
     3  * @bug 8038182
     4  * @summary javac crash with FunctionDescriptorLookupError for invalid functional interface
     5  * @compile/fail/ref=CrashFunctionDescriptorExceptionTest.out -XDrawDiagnostics CrashFunctionDescriptorExceptionTest.java
     6  */
     8 class CrashFunctionDescriptorExceptionTest {
    10     @SuppressWarnings("unchecked")
    11     void m () {
    12         bar((B b) -> {});
    13     }
    15     <E extends A<E>> void bar(I<E> i) {}
    17     class A<E> {}
    19     class B<E> extends A<E> {}
    21     interface I<E extends A<E>> {
    22         void foo(E e);
    23     }
    24 }

mercurial