Thu, 10 Oct 2013 14:58:04 +0200
8001931: The new build system whitespace cleanup
Reviewed-by: tbell, simonis, erikj
1 /*
2 * @test /nodynamiccopyright/
3 * @bug 8003280
4 * @summary Add lambda tests
5 * simple test for lambda candidate check
6 * @compile/fail/ref=LambdaConv18.out -XDrawDiagnostics -XDidentifyLambdaCandidate=true LambdaConv18.java
7 */
9 class LambdaConv18 {
11 interface SAM {
12 void m();
13 }
15 interface NonSAM {
16 void m1();
17 void m2();
18 }
20 SAM s1 = new SAM() { public void m() {} };
21 NonSAM s2 = new NonSAM() { public void m1() {}
22 public void m2() {} };
23 NonExistent s3 = new NonExistent() { public void m() {} };
24 }