And now to another reflection question. I'm using ...
# announcements
m
And now to another reflection question. I'm using gson in a dynamic proxy and need to build a generic map
fromJson
. The call takes a
java.lang.reflect.Type
. So I need a
Type
with generic information e.g. a
ParameterizedType
. I can see in the debugger that a
KFunction
has (can have) a caller
FunctionCaller$InstanceMethod
that again has a returnType
java.lang.reflect.Type
. Exactly what i need! Is there any way i can get my dirty hands on that, so i can make my dynamic proxy. UPDATE: whoops.
method.genericReturnType