Re: @override?



George3 wrote:
Thanks Lew,


Lew wrote:
I am using JDK 1.4 and there is a compiling a 3rd party program error because
[quoted text clipped - 8 lines]
You should seriously consider using a current version of Java.
BTW, it's "@Override".


Are there any samples of how to use @override?

http://java.sun.com/docs/books/tutorial/java/javaOO/annotations.html

Once again: It's @Override, not @override. Also, you won't
be able to use it at all until you move to a newer JDK.

--
Eric Sosman
esosman@xxxxxxxxxxxxxxxxxxxx
.



Relevant Pages

  • Re: @override?
    ... Lew wrote: ... of un-recognized word @override. ... You should seriously consider using a current version of Java. ...
    (comp.lang.java.help)
  • Re: why is var superValue not getting initialized to 911 in this code
    ... override in the example because 'doValue' has package-private access there. ... Lew, you are right ..again! ... So what would 'doValue' of SubclassB be ...
    (comp.lang.java.programmer)
  • Re: Small language changes
    ... Lew wrote: ... because the 'implements' keyword isn't clear enough. ... It would be used to indicate which methods implement interface methods. ... Yes I know you can use @Override for implementations, but it is not manditory. ...
    (comp.lang.java.programmer)
  • Re: Why does compiler only look at public methods of superclasses of...?
    ... Eric Sosman wrote: ... more-accessible method to the superclass can break a subclass whose ... less-restrictive method suddenly becomes an override ...
    (comp.lang.java.programmer)