站内搜索: 请输入搜索关键词

当前页面: 开发资料首页Eclipse 专题Eclipse 3.1 M4 关于Generics的Bug

Eclipse 3.1 M4 关于Generics的Bug

摘要: Eclipse 3.1 M4 关于Generics的Bug

我使用 Eclipse 3.1M4 进行如下编码时:

class Test implements Iterator {
public boolean hasNext() { return false; } public Integer next() { return null; } public void remove() {}
}

问题出现在 next() 方法,上面显示编译器警告:

Type safety: The return type Integer of the method next() of type Test needs unchecked conversion to conform to the return type E of inherited method

这是一个Eclipse的Bug

↑返回目录
前一篇: <<Eclipse开发指南>>的最终目录
后一篇: Eclipse与插件(tomcatPlugin Lomboz easyStruts)安装