langtools/test/tools/javac/typeAnnotations/failures/common/newarray/DuplicateAnnotationValue.java
author jjg
Tue, 26 Jan 2010 11:15:49 -0800
changeset 4867 7f4efc9b2f9f
parent 3766 7e2df99e9223
permissions -rw-r--r--
6919944: incorrect position given for duplicate annotation value error Reviewed-by: darcy

/*
 * @test /nodynamiccopyright/
 * @bug 6843077 6919944
 * @summary check for duplicate annotation values
 * @author Mahmood Ali
 * @compile/fail/ref=DuplicateAnnotationValue.out -XDrawDiagnostics -source 1.7 DuplicateAnnotationValue.java
 */
class DuplicateAnnotationValue {
  void test() {
    String[] a = new String @A(value = 2, value = 1) [5] ;
  }
}

@interface A { int value(); }