-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Can not infer generic type arguments after upgrading to 2.8.6 #1788
Comments
Sounds similar to #1731. This might be the same bug which has the pull request #1391 fixing it. Note however that I am not a maintainer and therefore do not know when that pull request will be merged. |
It looks like at least the specific test case you have given works fine in Gson 2.9.1; therefore I am closing this issue. Please create a new issue in case you still experience a similar problem. |
We recently updated our gson version from 2.7 to 2.8.6 and noticed some serialization test failures. The reason for this is that we have a data structure that makes extensive use of generics. On certain scenario fails were ObjectTypeAdaper always serializes NUMBER as Double.
Here is a unit test that passes with 2.7 and fails with 2.8.6
The text was updated successfully, but these errors were encountered: