lundi 16 juillet 2018

How to get inherited parametrized field class by reflections?

class A extends B<C> {
   ...
}

class B<T extends E> {
   ...
   public D<T> field;
}

How can I get class "C" from "field" reflections?

Now I just can get class "B" fields as "A" superclass fields and looks like they don't know which type parameter is passed from "A" and shows only type "E".





Aucun commentaire:

Enregistrer un commentaire