Hello,

I'm doing a little work with Java reflection and I seem to have hit a bit of a snag here. In my class, I have a field:

private Map<com.hs.MyKeyType,com.hs.MyValueType> myMap;

I am able to get the field using the getDeclaredFields() function of the class. I can also use: field.getType() function to get the type of the field as java.util.Map class; however, I can't seem to figure out a way to discover what class the Keys and values are.

Is it possible to know what the keys and values are at runtime?

Thanks for your help!

Evan