java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.Class

Coderanch | Jesper de Jong | 1 decade 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

    Generic + Reflection - Why following code fails ?

    Coderanch | 1 decade ago | Jesper de Jong
    java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.Class
  2. 0

    Generic + Reflection - Why following code fails ?

    Coderanch | 1 decade ago | pranav thakker
    java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl

    Root Cause Analysis

    1. java.lang.ClassCastException

      sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.Class

      at TestMain.main()
    2. Unknown
      TestMain.main
      1. TestMain.main(TestMain.java:19)
      1 frame