langtools/test/tools/javac/T8181464/LambdaInAnnotationsCausesNPETest3.java
author vromero
Tue, 13 Jun 2017 11:21:09 -0700
changeset 45500 365640343c55
permissions -rw-r--r--
8181464: Invalid lambda in annotation causes NPE in Lint.augment Reviewed-by: mcimadamore

/* @test /nodynamiccopyright/
 * @bug 8181464
 * @summary Invalid lambda in annotation causes NPE in Lint.augment
 * @modules java.compiler
 *          jdk.compiler
 * @compile Anno2.java AnnoProcessor.java
 * @compile/fail/ref=LambdaInAnnotationsCausesNPETest3.out -XDrawDiagnostics -processor AnnoProcessor -proc:only LambdaInAnnotationsCausesNPETest3.java
 */

@Anno2(value = LambdaInAnnotationsCausesNPETest3.m(x -> x))
class LambdaInAnnotationsCausesNPETest3 {
    static String m(Class<?> target) {
        return null;
    }
}