The method of type must override a superclass method解决方式
来源:互联网 发布:java p2p项目视频下载 编辑:程序博客网 时间:2024/05/16 15:15
The method of type must override a superclass method解决方式
分类: 网站设计2010-09-28 23:19 13736人阅读 评论(8) 收藏 举报
compilermyeclipseinterfacejdkclass
如果你用的是myeclipse 6.0 而且 在使用
@Override 时出现以下错误:
The method XXXXXX of type XXXXXXXXX must
override a superclass method
那是因为你的Compiler 是jdk1.5,只要把它改为 1.6就可以了
方法:
1. window ->preferences... -> java -> Compiler
2. Compiler compliance level : 6.0
3.Apply
4. ok
5.完成
The method of type must override a superclass method解决方式
2010年08月16日 星期一 11:17
The method of type must override a superclass method,提示的是实现类必须实现接口的方法。
原因:
实现类里面使用了 @Override
在1.5下要使用@Override 这个annotation 必须保证 被标注方法来源于class 而不是interface
解决方法:
将项目的jdk从1.5改为1.6
结果:
问题解决
0 0
- The method of type must override a superclass method 解决
- The method of type must override a superclass method解决方式
- The method of type must override a superclass method解决方式
- The method of type must override a superclass method 解决方式
- The method of type must override a superclass method解决方式
- The method of type must override a superclass method 解决方式
- The method of type must override a superclass method解决方式
- The method of type must override a superclass method解决方式
- The method of type must override a superclass method解决方式
- The method of type must override a superclass method解决方式
- The method of type must override a superclass method解决方式
- The method of type must override a superclass method解决方式
- Eclipse: The method of type must override a superclass method解决方式
- The method of type serviceimpl must override a superclass method解决方式
- The method of type must override a superclass method解决方式
- The method of type must override a superclass method解决方式
- The method of type must override a superclass method解决方式
- The method xxxx of type xxxx must override a superclass method 解决方式
- 苹果尺寸
- mkdir -p命令
- filter简介
- dfs序基本类型总结
- 国际化的原理、步骤、分类
- The method of type must override a superclass method解决方式
- ONE模拟过程
- java spring 记录用户增删改操作日志
- android开源项目 Google code
- android 代码规范
- mongodb的安装、创建数据库、设置用户(Window 7)
- 黑马程序员——正则表达式
- CoreData
- Android Studio美化之优雅的logcat