jdk
11 строк · 437.0 Байт
1/* @test /nodynamiccopyright/
2* @bug 8181464
3* @summary Invalid lambda in annotation causes NPE in Lint.augment
4* @modules java.compiler
5* jdk.compiler
6* @compile Anno.java AnnoProcessor.java
7* @compile/fail/ref=LambdaInAnnotationsCausesNPETest2.out -XDrawDiagnostics -processor AnnoProcessor -proc:only LambdaInAnnotationsCausesNPETest2.java
8*/
9
10@Anno(value = (String x) -> x)11class LambdaInAnnotationsCausesNPETest2 {}12