Skip to content

Unable to parse generic members  #61

@ramkimpls

Description

@ramkimpls

It is now impossible to fetch a document (json) whose class has generic members. The exposed find() method would only take a "Class" parameter. For any java class that has a generic type as a member ,the deserialization fails.
for example -

class MyClass< T > {
private string _id;
private T details;
}

class Details{
private String name;
private String city;
}

Assuming a doc confirming to the above structure is saved in couchdb, there seems to be no way to fetch the doc. The overloaded find() method would only take a 'Class' type as an argument and the generic class (in this case Details ) would never get populated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions