如果在使用Eclipse開發Java項目時,在使用 @Override 出現以下錯誤:
The method *** of type *** must override a superclass method
主要是因為你的Compiler是jdk5,(5不支援@Override等形式的批注)隻要把它改為6就可以了。
方法:将window->preferences->java-compiler中的Compiler compliance level修改為6.0。
如果在使用Eclipse開發Java項目時,在使用 @Override 出現以下錯誤:
The method *** of type *** must override a superclass method
主要是因為你的Compiler是jdk5,(5不支援@Override等形式的批注)隻要把它改為6就可以了。
方法:将window->preferences->java-compiler中的Compiler compliance level修改為6.0。