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

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