langtools/test/tools/javac/lambda/BadNestedLambda.java
author mcimadamore
Fri, 05 Jul 2013 11:00:19 +0100
changeset 18900 5ed5dd2ee5fe
permissions -rw-r--r--
8017618: NullPointerException in RichDiagnosticFormatter for bad input program Summary: RDF crashes when diagnostic contains type 'void' Reviewed-by: jjg, vromero

/*
 * @test /nodynamiccopyright/
 * @bug 8017618
 * @summary NullPointerException in RichDiagnosticFormatter for bad input program
 * @compile/fail/ref=BadNestedLambda.out -XDrawDiagnostics BadNestedLambda.java
 */
class BadNestedLambda {
    void test() {
        Runnable add = (int x) -> (int y) -> x + y;
    }
}