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

来源:互联网 发布:数据挖掘工程师 编辑:程序博客网 时间:2024/06/18 15:39
如果在使用Eclipse开发Java项目时,在使用 @Override 出现以下错误:
The method *** of type *** must override a superclass method

主要是因为你的Compiler是jdk5,(5不支持@Override等形式的批注)只要把它改为6就可以了。
方法:Just modify 1.5 to 1.6 in your YourProject->RightClick->Properties->Java Compiler->1.5, to 1.6. Apply and Yes to rebuild.
0 0
原创粉丝点击