JSON deserialization ignores case of setters #1830
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
The following example shows that json deserialization ignores the case of the setters, and deserializes two different fields that differ only in case to the same setter.
I stepped through in a debugger, and I think the issue is this logic that setups up a
FieldInfo
for deserialization ignores case:google-http-java-client/google-http-client/src/main/java/com/google/api/client/util/FieldInfo.java
Lines 140 to 141 in 84216c5
That logic was added as part of ff93479
Repro
With
com.google.http-client:google-http-client-gson:1.28.0
With
com.google.http-client:google-http-client-gson:1.27.0
The text was updated successfully, but these errors were encountered: