java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl

Coderanch | pranav thakker | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Generic + Reflection - Why following code fails ?

    Coderanch | 1 decade ago | pranav thakker
    java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl
  2. 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

    Root Cause Analysis

    1. java.lang.ClassCastException

      sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl

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