jeudi 8 septembre 2022

get return type of generic method

I know about type-erasure, I know it shouldn't be possible and every stackoverflow-post answers with workarounds but I'm willing to use the hackiest, bytecode-manipulating, reflective functionality to make this work:

static <T> Class<T> getGenericType() {...}




Aucun commentaire:

Enregistrer un commentaire