日期:2014-05-19  浏览次数:20630 次

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