java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType

Coderanch | Stephane Eybert | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Extending a class which itself extends a parameterized generic class

    Coderanch | 4 years ago | Stephane Eybert
    java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType

      at com.thalasoft.learnintouch.core.dao.hibernate.GenericHibernateDao.<init>()
    2. com.thalasoft.learnintouch
      TestDemo.main
      1. com.thalasoft.learnintouch.core.dao.hibernate.GenericHibernateDao.<init>(GenericHibernateDao.java:41)
      2. com.thalasoft.learnintouch.core.dao.hibernate.UserHibernateDao.<init>(UserHibernateDao.java:26)
      3. com.thalasoft.learnintouch.core.dao.h2.hibernate.UserCustomHibernateDao.<init>(UserCustomHibernateDao.java:17)
      4. com.thalasoft.learnintouch.core.exception.TestDemo.main(TestDemo.java:8)
      4 frames