author | iignatyev |
Thu, 21 Jun 2018 22:17:22 -0700 | |
changeset 50709 | 483806baeba1 |
parent 47216 | 71c04702a3d5 |
permissions | -rw-r--r-- |
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 |
} |