如果在使用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。
@Override must override a superclass method
转载上一篇:cmd运行 一闪即逝
下一篇:我的友情链接
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
must override a superclass method解决方式
工程导入myeclipse时,出现问题提示:The method of type must override asuperclass? annotation
myeclipse web java ide eclipse -
override
C++11 //override必须重载 //override警示符,声明重写父类的方法,如果父类没有接口,会提示出错
父类 ide c++11 虚函数 ios