langtools/test/tools/javac/T8175198/AnnotationsAndFormalParamsTest.java
author vromero
Fri, 10 Mar 2017 09:52:49 -0800
changeset 44194 c868c8c24e18
permissions -rw-r--r--
8175198: Javac incorrectly allows receiver parameters in annotation methods Reviewed-by: mcimadamore

/*
 * @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);
}