Eclipse 突然不喜欢我的覆盖

发布于 2024-10-16 04:22:30 字数 132 浏览 5 评论 0原文

似乎不知从何而来,我启动了 Eclipse,开始编码,然后出现了大量错误,所有这些错误都与我重写某些基类(onclicks、适配器等)的函数有关。我删除了覆盖,功能仍然有效,但我不知道为什么会突然发生这种情况。我担心这会引起更大的问题。有什么想法吗?

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 overrides and the functionality still works but I have no clue why this happened suddenly. I'm worried it could cause bigger issues. Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

若能看破又如何 2024-10-23 04:22:30

您可能使用的是 Java 1.5,Java 1.5 和 1.6 在覆盖方面存在一些冲突。

我猜override在Java 1.6中应该不会有任何问题,

但是如果你想在命令行中构建,我们必须使用Java 1.5,当时override在编译时会出现问题。

希望这可能有所帮助。

如果你想看看你正在使用哪一个,在 Eclipse 下,
窗口>>首选项>> Java>>编译器

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文