@Override must override a superclass method 问题解决
2016-03-31 10:45
323 查看
如果在使用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。
The method *** of type *** must override a superclass method
主要是因为你的Compiler是jdk5,(5不支持@Override等形式的批注)只要把它改为6就可以了。
方法:将window->preferences->java-compiler中的Compiler compliance level修改为6.0。
相关文章推荐
- hud1159
- KMP算法
- 开灯问题
- char*,const char*和string的相互转换(转载)
- ios开发的编码规范
- 从GitHub上下载单个文件(夹)
- Android笔记:解决 Your project contains error(s),please fix them before running your application问题
- matlab程序编程
- 【LeetCode】31. Next Permutation解法
- Go语言学习九:Map(集合)、递归函数、类型转换
- 使用magent搭建memcached集群
- yii2-GridView在开发中常用的功能及技巧
- yii使用网页
- -bash: crontab: command not found
- Github push掉坑纪录
- C# decimal类型(值类型、非基本类型)
- 数字信号处理与音频处理(使用Audition)
- tungsten抽取和应用mysql binlog
- php的查询数据
- vc2008对话框中mschart控件应用