1/* 2 * @test /nodynamiccopyright/ 3 * @bug 8181911 4 * @summary Verify that the analyzer does not affect ordinary compilation. 5 * @compile/ref=LambdaConv28.out -XDrawDiagnostics -XDfind=lambda LambdaConv28.java 6 */ 7 8class LambdaConv28 { 9 10 public void test(A a) { 11 test(()-> { 12 return new I() { 13 public <T> void t() { 14 } 15 }; 16 }); 17 test(new A() { 18 public I get() { 19 return null; 20 } 21 }); 22 } 23 24 public interface I { 25 public <T> void t(); 26 } 27 28 public interface A { 29 public I get(); 30 } 31 32} 33