i've create a project/class file in Eclipse Helios using JDK1.6. I had let the eclipse to generate the code for the implementation class of an Interface.
public interface Foo {
void bar();
}
public class FooImpl implements Foo {
@Override
public void bar() {
}
}
So for so good. Now for some reason, I've imported the project in an Eclipse which has JDK 1.5
and I see error message The method bar() of type FooImpl must override a superclass method
with a quick fix to remove '@Override' annotation.
After goodling, I got to know there is something like OVERRIDE_SNAUF - where 6.0 Java compiler was updated to allow @Override on interface method implementations.