discomarathon / google-gson

Automatically exported from code.google.com/p/google-gson
0 stars 0 forks source link

Support serializing local classes #196

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by inder123 on 3 Nov 2010 at 1:47

GoogleCodeExporter commented 9 years ago

Original comment by limpbizkit on 4 Nov 2010 at 10:41

GoogleCodeExporter commented 9 years ago

Original comment by joel.leitch@gmail.com on 16 Apr 2011 at 9:54