开发者

Eclipse suddenly doesn't like my overrides

Seemingly out of no where, I launch Eclipse, start coding, and I have a ton of errors, all relating to me overriding functions of some base classes (the onclicks, the adapters, etc). I remove the ove开发者_运维问答rrides and the functionality still works but I have no clue why this happened suddenly. I'm worried it could cause bigger issues. Any ideas?


There is a chance that , you are using Java 1.5 , there is some clash is Java 1.5 and 1.6 regarding override.

override should not have any problem in Java 1.6 I guess,

But if you want to build in command line , We have to use Java 1.5 at that time override gives problem while compiling.

Hope this might help.

If you want to see , which one you are using, Under Eclipse, Windows >> Preferences >> Java >> Compiler

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜