Authors: russell@unturf.com · brackishbert@gmail.com · foxhop.net · TimeHexOn.com Patches, unit tests, benchmarks, whitepaper, and outreach briefs. Public domain — no copyright claimed. Use freely.
11 lines
437 B
Java
11 lines
437 B
Java
/* @test /nodynamiccopyright/
|
|
* @bug 8181464
|
|
* @summary Invalid lambda in annotation causes NPE in Lint.augment
|
|
* @modules java.compiler
|
|
* jdk.compiler
|
|
* @compile Anno.java AnnoProcessor.java
|
|
* @compile/fail/ref=LambdaInAnnotationsCausesNPETest2.out -XDrawDiagnostics -processor AnnoProcessor -proc:only LambdaInAnnotationsCausesNPETest2.java
|
|
*/
|
|
|
|
@Anno(value = (String x) -> x)
|
|
class LambdaInAnnotationsCausesNPETest2 {}
|