You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gson gets caught in infinite recursion if a client attempts to convert a
JSON string into a Java object of type Foo with the following
JsonDeserializer registered:
public static class FooTypeAdapter implements JsonDeserializer<Foo> {
public Foo deserialize(JsonElement json, Type typeOfT,
JsonDeserializationContext context)
throws JsonParseException {
Foo fooObj = context.deserialize(json, typeOfT);
fooObj.setExtraField("ThisIsExtra");
return fooObj;
}
}
Original issue reported on code.google.com by joel.leitch@gmail.com on 14 Sep 2008 at 7:58
Original issue reported on code.google.com by
joel.leitch@gmail.com
on 14 Sep 2008 at 7:58The text was updated successfully, but these errors were encountered: