equal
deleted
inserted
replaced
|
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 Anno2.java AnnoProcessor.java |
|
7 * @compile/fail/ref=LambdaInAnnotationsCausesNPETest3.out -XDrawDiagnostics -processor AnnoProcessor -proc:only LambdaInAnnotationsCausesNPETest3.java |
|
8 */ |
|
9 |
|
10 @Anno2(value = LambdaInAnnotationsCausesNPETest3.m(x -> x)) |
|
11 class LambdaInAnnotationsCausesNPETest3 { |
|
12 static String m(Class<?> target) { |
|
13 return null; |
|
14 } |
|
15 } |