This may seem a dumb question (as it could be very project specific) but in this case it's general enough:
I'm running a piece of code which gives the ClassCastException
, with the error message I wrote as title. Here the mentioned cast is from an object of type java.lang.reflect.Type
to Class<?>
.
Apart from primitive types, which type in Java is not a class?
Thanks for your answers