When one implements an interface, the template in Eclipse puts an
@Override and it does not complain about it. Ant
javac task also compiles without warnings.
Sometimes other Eclipse instances start to complain exactly for that
@Override stating that there's no method that's overridden. Well, Eclipse, please do make up your mind.
Well, that's not very clear. As far as I remember an Interface is a pure abstract class, right? So, which one's correct.
P.S. Sometime ago I was having a similar problem with Eclipse and generics - Eclipse only gave a warning about something (can't remember what exactly), but the
javac said that it was an error - Google said something like "eclipse uses
jikes, you use
javac". So what, aren't there specs?!
Update: apparently JDK5 (or 1.5, suit yourself) does not allow that. So in order to get all the wrong
@Overrides - set the Compliance level to 5.0 (
Eclipse -> Window -> Preferences -> Java -> Compiler -> Compiler compliance level ) - and..... correct them. I have 29 left.