author | vromero |
Tue, 13 Jun 2017 11:21:09 -0700 | |
changeset 45500 | 365640343c55 |
permissions | -rw-r--r-- |
45500
365640343c55
8181464: Invalid lambda in annotation causes NPE in Lint.augment
vromero
parents:
diff
changeset
|
1 |
/* @test /nodynamiccopyright/ |
365640343c55
8181464: Invalid lambda in annotation causes NPE in Lint.augment
vromero
parents:
diff
changeset
|
2 |
* @bug 8181464 |
365640343c55
8181464: Invalid lambda in annotation causes NPE in Lint.augment
vromero
parents:
diff
changeset
|
3 |
* @summary Invalid lambda in annotation causes NPE in Lint.augment |
365640343c55
8181464: Invalid lambda in annotation causes NPE in Lint.augment
vromero
parents:
diff
changeset
|
4 |
* @modules java.compiler |
365640343c55
8181464: Invalid lambda in annotation causes NPE in Lint.augment
vromero
parents:
diff
changeset
|
5 |
* jdk.compiler |
365640343c55
8181464: Invalid lambda in annotation causes NPE in Lint.augment
vromero
parents:
diff
changeset
|
6 |
* @compile Anno.java AnnoProcessor.java |
365640343c55
8181464: Invalid lambda in annotation causes NPE in Lint.augment
vromero
parents:
diff
changeset
|
7 |
* @compile/fail/ref=LambdaInAnnotationsCausesNPETest2.out -XDrawDiagnostics -processor AnnoProcessor -proc:only LambdaInAnnotationsCausesNPETest2.java |
365640343c55
8181464: Invalid lambda in annotation causes NPE in Lint.augment
vromero
parents:
diff
changeset
|
8 |
*/ |
365640343c55
8181464: Invalid lambda in annotation causes NPE in Lint.augment
vromero
parents:
diff
changeset
|
9 |
|
365640343c55
8181464: Invalid lambda in annotation causes NPE in Lint.augment
vromero
parents:
diff
changeset
|
10 |
@Anno(value = (String x) -> x) |
365640343c55
8181464: Invalid lambda in annotation causes NPE in Lint.augment
vromero
parents:
diff
changeset
|
11 |
class LambdaInAnnotationsCausesNPETest2 {} |