首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

The method getActualTypeArguments() is undefined for the type ParameterizedType解

2012-09-28 
The method getActualTypeArguments() is undefined for the type ParameterizedTypepublic abstract clas

The method getActualTypeArguments() is undefined for the type ParameterizedType
public abstract class HibernateDao<T>{
private Class<T> clazz;
protected HibernateDao() {
ParameterizedType type=(ParameterizedType)getClass().getGenericSuperclass();
clazz=(Class<T>)type.getActualTypeArguments()[0];

}
红色部分报错 为什么啊?

[解决办法]
http://zhidao.baidu.com/question/168167280.html

热点排行