author | jjg |
Tue, 26 Jan 2010 11:15:49 -0800 | |
changeset 4867 | 7f4efc9b2f9f |
parent 3766 | 7e2df99e9223 |
permissions | -rw-r--r-- |
3150 | 1 |
/* |
3766 | 2 |
* @test /nodynamiccopyright/ |
4867
7f4efc9b2f9f
6919944: incorrect position given for duplicate annotation value error
jjg
parents:
3766
diff
changeset
|
3 |
* @bug 6843077 6919944 |
3150 | 4 |
* @summary check for duplicate annotation values in receiver |
5 |
* @author Mahmood Ali |
|
6 |
* @compile/fail/ref=DuplicateAnnotationValue.out -XDrawDiagnostics -source 1.7 DuplicateAnnotationValue.java |
|
7 |
*/ |
|
8 |
class DuplicateAnnotationValue { |
|
9 |
void test() @A(value = 2, value = 1) { } |
|
10 |
} |
|
11 |
||
12 |
@interface A { int value(); } |