The method * of type * must override a superclass method

The method *** of type *** must override a superclass method

如果在实现接口时,出现了“The metho *** of type *** musst override a superclass method ”这个错误时,主要是因为实现类里使用了@Override这个annotation。

JDK1.5下如果要使用@Override必须保证被标注的方法来源于class而非interface

将JDK修改为1.6后就可以解决此问题