Код: Выделить всё
public abstract class A {
protected static final String c = "my const";
}
@myAnnotation(value=A.c)
public class B extends A {
}
Код: Выделить всё
Eclipsec имеет защищенный доступ в A
Подробнее здесь: https://stackoverflow.com/questions/108 ... pper-class
Мобильная версия