langtools/test/tools/javac/annotations/neg/Constant.java
author sogoel
Thu, 28 Aug 2014 23:42:16 -0700
changeset 26273 2663ad455e00
parent 7681 1f0819a3341f
permissions -rw-r--r--
8049126: golden files for annotations test in tools/java dir Reviewed-by: jjg

/*
 * @test /nodynamiccopyright/
 * @bug 4901268
 * @summary JSR175 (5): annotations must be "constants"
 * @author gafter
 *
 * @compile/fail/ref=Constant.out -XDrawDiagnostics  Constant.java
 */

package Constant;

@T(a = X.x)
@interface T {
    int a();
}

class X {
    static int x;
}