Is this code valid?
public abstract class A { protected static final String c = \"my const\"; } @myAnnotation(value=A.c) public class B extends A { } >
This code will compile only if both A and B belong to the same package.
A
B