What steps will reproduce the problem?
1. Run the following test case
@Test
public void localClassSerializationFailed()
{
Gson s = new Gson();
class MyLocalClass{
String someString="SomeValue";
}
String serializedString=s.toJson(new MyLocalClass());
assertTrue(serializedString.contains(
"{\"someString\":\"SomeValue\"}"));
}
Original issue reported on code.google.com by td.abinesh on 26 Feb 2010 at 5:32
Original issue reported on code.google.com by
td.abinesh
on 26 Feb 2010 at 5:32