I have an abstract base class, and two child classes; I have the "same" field in the two child classes, annotated each other with "different" annotations, and I want to put "up" the field into the base class, and add the annotations in the child classes.
Is possible? (following non-working pseudo-code)
abstract class Base {
Object field;
}
class C1 extends Base {
@Annotation1
super.field;
}
class C2 extends Base {
@Annotation2
super.field;
}