如果在使用Eclipse开发Java项目时,在使用 @Override 出现以下错误:
The method *** of type *** must override a superclass method
主要是因为你的Compiler是jdk5,(5不支持@Override等形式的批注)只要把它改为6就可以了。
方法:Just modify 1.5 to 1.6 in your YourProject->RightClick->Properties->Java Compiler->1.5,
to 1.6. Apply and Yes to rebuild.
解决Eclipse@Override错误
本文介绍了解决在Eclipse中使用@Override注解时遇到的错误:“The method *** of type *** must override a super class method”。该问题通常是因为使用的Compiler版本为JDK 5,而JDK 5不支持@Override注解。解决办法是将Compiler版本升级到JDK 6。
544

被折叠的 条评论
为什么被折叠?



