刚才在把工程从其他地方导入到自己机子的 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 即可。

MyEclipse、Eclipse 编译时提示 @Override The method of type must override......

相关文章:

  • 2021-03-31
  • 2022-12-23
  • 2022-01-15
  • 2022-02-18
  • 2022-12-23
  • 2021-10-24
猜你喜欢
  • 2022-12-23
  • 2021-11-02
  • 2021-06-22
  • 2021-10-26
  • 2021-06-29
相关资源
相似解决方案