Skip to content
Advertisement

Get type of a generic parameter in Java with reflection

Is it possible to get the type of a generic parameter?

An example:

JavaScript

Advertisement

Answer

One construct, I once stumbled upon looked like

JavaScript

So there seems to be some reflection-magic around that I unfortunetly don’t fully understand… Sorry.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement