Take the 2-minute tour ×  I'm using JDK1.6. When I implement an
interface and in the implementing class, if I give @override
before my function names, Eclipse throws an compilation error.
i.e. below code is wrong according to Eclipse.  public class
SomeListener implements ServletContextListener {     public void
contextDestroyed(ServletContextEvent arg0) {        // code
/* other overridden methods here */  If I remove @Override
annotation, then the code compiles fine. Does it mean that
JDK1.6 does not require us to prefix the @override annotation
anymore?  share|improve this question What , specifically, is
the error eclipse gives you ? –  nos Sep 1 '10 at 14:23 You are
absolutely certain you are actually overriding the method and
not overloading it? –  Thorbjørn Ravn Andersen Sep 1 '10 at
14:24 Eclipse's error message: The method
contextDestroyed(ServletContextEvent) of type OgnlListener must
override a superclass method –  Veera Sep 1 '10 at 14:28 What is
OgnlListener? That is not in your example. –  J