8041704: wrong error message when mixing lambda expression and inner class

Reviewed-by: vromero
This commit is contained in:
Paul Govereau 2014-05-27 18:57:44 +01:00
parent 378c3fe62f
commit 649331e00f
4 changed files with 32 additions and 5 deletions

View file

@ -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() {} }); });
}
}