您的位置:首页 >> 编程开发 >> Java >> Java基础 >> Eclipse >> 正文
Eclipse RSS
 

Eclipse 3.1 M4 关于Generics的Bug

http://www.rdxx.com 05年07月27日 22:25 CSDN 我要投稿

关键词: Eclipse , Bug , IP

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

class Test implements Iterator<Integer> {
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 , Bug , IP 打印本文
 
 
  热点搜索
 
 
 



Valid XHTML 1.0 Transitional
Copyright ©2005 - 2008 Rdxx.Com,All Rights Reserved
收藏本页
收藏本站