MyEclipse6.5 @Override 时出错误 The method of type must override a superclass method

来源:互联网 发布:大数据 风险管理 编辑:程序博客网 时间:2024/05/01 05:37

@Override 时出错误:


解决办法是:

一、                                                                    
因为你的Compiler 是jdk1.5,只要把它改为 1.6

方法:

1. window ->preferences... -> java -> Compiler

2. Compiler compliance level : 6.0

二、 把项目的JRE变成6.0的
项目右键->build path->configure build path->java Compiler(左边那排中) ->在右边的Compiler compliance level 修改版本为6.0 

 

 

0 0
原创粉丝点击