List is a raw type. References to generic type List<E> should be parameterized

来源:互联网 发布:和日本人谈恋爱 知乎 编辑:程序博客网 时间:2024/06/05 18:11

利用Myeclipse开发时遇到的问题5

Class is a raw type. References to generic type Class<T> should be parameterized 
HashMap is a raw type. References to generic type HashMap<K,V> should be parameterized 
HashSet is a raw type. References to generic type HashSet<E> should be parameterized 
Iterator is a raw type. References to generic type Iterator<E> should be parameterized 
List is a raw type. References to generic type List<E> should be parameterized 
Map is a raw type. References to generic type Map<K,V> should be parameterized
Referenced bean 'daoProxyFactory' not found 
Set is a raw type. References to generic type Set<E> should be parameterized 

这些错误是什么意思,应该怎样解决啊

问题补充:有什么可以参考的资料么,我是刚接触这个的,是参照视频学习的,还有很多不明白之处,留个QQ吧,谢了!
Spring 
2010年4月19日 20:15
  • Comment添加评论
  • 关注(0)

3个答案按时间排序按投票排序

00


关于泛型,其实就是个 写法上的变化。没有太多的内容。 

关于学习资料,纸制的可以看看IBM上的教程,或者Core Java等 

泛型的学习视频有 浪曦的JDK5.0新特性 等,几乎各大免费视频中都有。自己搜索下!!

2010年4月20日 07:48
  • Comment添加评论
00


这不是错误,只是警告。呵呵,不用担心。 

在JDK1.5引入了泛型,泛型使得编译器能在编译时,获得更多的信息,以防止类型转换出错。 

建议你稍微了解下泛型,可以的话,改一下代码。(不难的!) 

2010年4月19日 20:29
  • Comment添加评论
00


你应该是使用 泛型


0 0