aspose file tools
The moose likes Java in General and the fly likes Override Superclass annotation Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Override Superclass annotation" Watch "Override Superclass annotation" New topic
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...
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Override Superclass annotation
 
Similar Threads
Question on Objects
Weld - passing parameters
Casting reference types.
Problems with Lists
method invocation problem