The method getActualTypeArguments() is undefined for the type ParameterizedType
银冰冷月 2012-05-09 07:25:55 public abstract class HibernateDao<T>{
private Class<T> clazz;
protected HibernateDao() {
ParameterizedType type=(ParameterizedType)getClass().getGenericSuperclass();
clazz=(Class<T>)type.getActualTypeArguments()[0];
}
红色部分报错 为什么啊?