【转】@Override must override a superclass method 问题解决
2016-06-03 19:48
253 查看
原文网址: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。
如果在使用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。
相关文章推荐
- Maven两个工程
- python中的除法,取整和求模
- sql解释执行顺序 调优小常识
- Hibernate与Spring框架的整合
- Hive 基础
- GCD简单使用
- Git回退远程仓的某次提交
- 项目-数组类模板在数组类的基础上,将之改造为类模板,以使数组中可以存储各种类型的数据
- 3054 高精度练习-文件操作
- 在lldb调试中调用c++函数
- sys.argv
- 基于Theano的多层神经网络及其实现(三)(实现代码)
- 使用libsvm中的svm_cross_validation函数进行交叉验证
- QT program tips
- 基于Theano的多层神经网络及其实现(二)
- Sprint第二个冲刺(第二天)
- hive的三板斧:内部表和外部表、分区和分桶以及序列化/反序列化(SerDe)
- permutation
- SQL-Server精简安装选项
- 第十五周阅读程序(4)