Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to parse generic members #61

Open
ramkimpls opened this issue Feb 3, 2017 · 0 comments
Open

Unable to parse generic members #61

ramkimpls opened this issue Feb 3, 2017 · 0 comments

Comments

@ramkimpls
Copy link

ramkimpls commented Feb 3, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant