天天看點

eclipse報錯:The method convert(String) of type DateConvertor must override a superclass method;

​​@Override must override a superclass method 問題解決​​

如果在使用Eclipse開發Java項目時,在使用 @Override 出現以下錯誤:

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

eclipse報錯:The method convert(String) of type DateConvertor must override a superclass method;

主要是因為你的Compiler是jdk5,(5不支援@Override等形式的批注)隻要把它改為6就可以了。

方法:将右鍵工程名>preferences->java-compiler中的JDK Compliance修改為1.6包括以上版本。