8017618: NullPointerException in RichDiagnosticFormatter for bad input program

RDF crashes when diagnostic contains type 'void'

Reviewed-by: jjg, vromero
This commit is contained in:
Maurizio Cimadamore 2013-07-05 11:00:19 +01:00
parent 684d5ec76d
commit 7e6f7dcca5
3 changed files with 17 additions and 2 deletions

View file

@ -0,0 +1,11 @@
/*
* @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;
}
}