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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
44194
c868c8c24e18 8175198: Javac incorrectly allows receiver parameters in annotation methods
vromero
parents:
diff changeset
     1
/*
c868c8c24e18 8175198: Javac incorrectly allows receiver parameters in annotation methods
vromero
parents:
diff changeset
     2
 * @test /nodynamiccopyright/
c868c8c24e18 8175198: Javac incorrectly allows receiver parameters in annotation methods
vromero
parents:
diff changeset
     3
 * @bug 8175198
c868c8c24e18 8175198: Javac incorrectly allows receiver parameters in annotation methods
vromero
parents:
diff changeset
     4
 * @summary Javac incorrectly allows receiver parameters in annotation methods
c868c8c24e18 8175198: Javac incorrectly allows receiver parameters in annotation methods
vromero
parents:
diff changeset
     5
 * @compile/fail/ref=AnnotationsAndFormalParamsTest.out -XDrawDiagnostics -Werror -Xlint:unchecked AnnotationsAndFormalParamsTest.java
c868c8c24e18 8175198: Javac incorrectly allows receiver parameters in annotation methods
vromero
parents:
diff changeset
     6
 */
c868c8c24e18 8175198: Javac incorrectly allows receiver parameters in annotation methods
vromero
parents:
diff changeset
     7
c868c8c24e18 8175198: Javac incorrectly allows receiver parameters in annotation methods
vromero
parents:
diff changeset
     8
@interface AnnotationsAndFormalParamsTest {
c868c8c24e18 8175198: Javac incorrectly allows receiver parameters in annotation methods
vromero
parents:
diff changeset
     9
    int value(int i);
c868c8c24e18 8175198: Javac incorrectly allows receiver parameters in annotation methods
vromero
parents:
diff changeset
    10
    int foo(AnnotationsAndFormalParamsTest this);
c868c8c24e18 8175198: Javac incorrectly allows receiver parameters in annotation methods
vromero
parents:
diff changeset
    11
}