mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 00:54:38 +02:00
8017618: NullPointerException in RichDiagnosticFormatter for bad input program
RDF crashes when diagnostic contains type 'void' Reviewed-by: jjg, vromero
This commit is contained in:
parent
684d5ec76d
commit
7e6f7dcca5
3 changed files with 17 additions and 2 deletions
11
langtools/test/tools/javac/lambda/BadNestedLambda.java
Normal file
11
langtools/test/tools/javac/lambda/BadNestedLambda.java
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue