【转】@Override must override a superclass method 问题解决

原文网址:http://www.blogjava.net/anchor110/articles/339352.html

如果在使用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。

posted on 2016-06-03 19:48  wi100sh  阅读(185)  评论(0编辑  收藏  举报

导航