GoogleSearchBox

Custom Search

Tuesday, December 10, 2013

Eclipse compiler error: The method ... of type ... must override a superclass method

I got some error as below in eclipse complaining about a compiler error:
The method ..... of type ..... must override a superclass method.
Where as as you can clearly that I am overriding the method using the @Override annotation
 


Reason:
Check if your eclipse/myeclipse is using a compiler version lesser than java 1.6.

Solution:
Change the compiler to jdk 1.6 or above in your IDE as shown in below picture:
That should do.




References: http://stackoverflow.com/questions/1678122/must-override-a-superclass-method-errors-after-importing-a-project-into-eclips