轻松解决 MyEclipse、Eclipse 编译时提示 @Override The method of type must override a superclass method 即 @Overr
2014-04-27 20:28
507 查看
刚才在把工程从其他地方导入到自己机子的 MyEclipse 下时,出现了 The method of type must override a superclass method ,提示的是实现类必须实现接口的方法。
想了半天,发现没有问题啊,查看 jre 是1.6的,查了一下,好像是 annotation 的问题,实现类里面使用了 @Override 。发现原来的 Java Complier 是1.5的。
只需如下图将 MyEclipse 的 Compiler 由 jdk1.5
改为 1.6或1.7 即可。
转载自 http://xiaogui.org/the-method-of-type-must-override-a-superclass-method.html
想了半天,发现没有问题啊,查看 jre 是1.6的,查了一下,好像是 annotation 的问题,实现类里面使用了 @Override 。发现原来的 Java Complier 是1.5的。
只需如下图将 MyEclipse 的 Compiler 由 jdk1.5
改为 1.6或1.7 即可。
转载自 http://xiaogui.org/the-method-of-type-must-override-a-superclass-method.html
相关文章推荐
- 轻松解决 MyEclipse、Eclipse 编译时提示 @Override The method of type must override a superclass method 即 @Overr
- (转)轻松解决 MyEclipse、Eclipse 编译时提示 @Override The method of type must override a superclass method 即 @Override 标注问题
- 导入项目的时候,提示说@override The method of type must override a superclass method解决方式的错误
- eclipse 中导入android 工程时出错:The method of type must override a superclass method 解决方式
- Eclipse: The method of type must override a superclass method解决方式
- 导入工程提示The method of type must override a superclass 的解决方法
- 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 解决方式】
- Java重写父类使用@Override时出现The method destroy() of type xxx must override a superclass method的问题解决
- 解决The method onClick(View) of type new View.OnClickListener(){} must override a superclass错误
- 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解决方式