| Author |
Override Superclass annotation
|
Alex O. Sul
Greenhorn
Joined: Nov 06, 2009
Posts: 3
|
|
Guys,
I have a big problem with annotations. That's what happens:
That's the Animal class:
This class have an annotation named "MyAnnotation", and receive the value "it's a id"
And i have the follow class:
My question: is there a way to override the annotation of the field "id" of the superclass Animal in the class Dog?
Thanks in advance.
|
SCJP 5
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19230
|
|
|
Class Dog doesn't even know there is an "id" field, so no.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
Chitti Ruddarraju
Greenhorn
Joined: Oct 19, 2009
Posts: 7
|
|
|
It is not possible...
|
 |
 |
|
|
subject: Override Superclass annotation
|
|
|