【发布时间】:2015-12-18 02:02:59
【问题描述】:
背景:我们遇到的主要问题是在 Redhat linux Santiago 6 中运行的 Eclipse Helios 崩溃并且有时没有响应。我们无法找出根本原因,并尝试了我从不同站点(包括 stackoverflow)阅读的不同解决方案。
到目前为止我做了什么: 所以我决定下载 Eclipse Luna 并从我的 Eclipse Helios 导入现有项目,并将 eclipse luna 中安装的 jre 更改为 WLS 1.8 中内置的 jrockit(如我们使用的是旧版框架)
问题: 导入现有项目后,eclipse luna 出现问题。
Duplicate methods named put with the parameters (K, V) and (Object, Object) are inherited from the types HashMap and AbstractMap
The method put(Object, Object) is ambiguous for the type
但是在eclipse helios中没有遇到这个错误。
我也下载了 eclipse Juno、Kepler 但和 luna 一样的问题。
问题:是否有解决方法或如何关闭并忽略 eclipse luna 中的此错误?
编辑:按要求提供示例代码
这是有错误的类之一。
public class DummyMessageMap extends HashMap implements MessageMap {
// implementation of the interface but returns null values.
}
public interface MessageMap extends Map{
public Message getMessage(String key);
public String getLanguage();
}
【问题讨论】:
标签: java eclipse eclipse-luna