test/langtools/tools/javac/T8175198/AnnotationsAndFormalParamsTest.java
author erikj
Tue, 12 Sep 2017 19:03:39 +0200
changeset 47216 71c04702a3d5
parent 44194 langtools/test/tools/javac/T8175198/AnnotationsAndFormalParamsTest.java@c868c8c24e18
permissions -rw-r--r--
8187443: Forest Consolidation: Move files to unified layout Reviewed-by: darcy, ihse

/*
 * @test /nodynamiccopyright/
 * @bug 8175198
 * @summary Javac incorrectly allows receiver parameters in annotation methods
 * @compile/fail/ref=AnnotationsAndFormalParamsTest.out -XDrawDiagnostics -Werror -Xlint:unchecked AnnotationsAndFormalParamsTest.java
 */

@interface AnnotationsAndFormalParamsTest {
    int value(int i);
    int foo(AnnotationsAndFormalParamsTest this);
}