The method of type must override a superclass method解决方式
来源:互联网 发布:淘宝卖家服务电话多少 编辑:程序博客网 时间:2024/05/17 04:33
如果你用的是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
结果:
问题解决
- 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 解决方式
- Screen 命令简单用法
- Move 表、索引、Lob、Long
- 一幅数据在linux网络流动的图--非流程图
- ARM CORTEX Ax NEON 中的加法指令
- php中常量,变量的作用域和生存周期
- The method of type must override a superclass method解决方式
- TG2 第一个尝试:hello world 遇到的问题
- C++中调用Python脚本
- linux内核网络实现的一些问题
- 图解 “ { ”
- 网络协议栈的一些问题--附带设计问题
- 宏基4930G笔记本触摸板不能用的解决方法
- c++学习经典书籍
- 工作三个月小结