Describe the proposal
As discussed #293 , TypeRef<T> was added to support deserialization of generic types.
However, instances of TypeRef<T> can only be statically (during compilation) created. There are occasions when generic types need to be dynamically created. I suggest adding the following method to deserialize API to support such cases.
<T> T deserialize(byte[] data, java.lang.reflect.Type type) throws IOException
Describe the proposal
As discussed #293 ,
TypeRef<T>was added to support deserialization of generic types.However, instances of
TypeRef<T>can only be statically (during compilation) created. There are occasions when generic types need to be dynamically created. I suggest adding the following method to deserialize API to support such cases.<T> T deserialize(byte[] data, java.lang.reflect.Type type) throws IOException