Skip to content

add java.lang.reflect.Type to deserialize API #331

Description

@xiazuojie

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

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions