mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8041704: wrong error message when mixing lambda expression and inner class
Reviewed-by: vromero
This commit is contained in:
parent
378c3fe62f
commit
649331e00f
4 changed files with 32 additions and 5 deletions
|
@ -0,0 +1,12 @@
|
|||
/**
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 8041704
|
||||
* @summary wrong error message when mixing lambda expression and inner class
|
||||
* @compile/fail/ref=ErrorMessageTest.out -XDrawDiagnostics ErrorMessageTest.java
|
||||
*/
|
||||
|
||||
public class ErrorMessageTest {
|
||||
void f(Runnable r) {
|
||||
f(() -> { f(new MISSING() { public void run() {} }); });
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue