0 0

利用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吧,谢了!
2010年4月19日 20:15

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

0 0


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

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

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

2010年4月20日 07:48
0 0


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

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

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

2010年4月19日 20:29
0 0


你应该是使用 泛型

2010年4月19日 20:23

相关推荐

Global site tag (gtag.js) - Google Analytics