discomarathon / google-gson

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

missing coma #173

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I'm serializing a not-accessible-class. It's unreproducible other way. 

What is the expected output? What do you see instead?

{
    "wsImpl":
    {
        "name":"Derby JDBC Provider (XA)",
        "type":17,
        "instrumentationLevel":-2,
        "subCollections":
        [
            {
                "dsOName":{}         <-------------
                "name":"jdbc/DefaultEJBTimerDataSource",
                "type":17,
                "instrumentationLevel":-2,
                "dataMembers":
                [
                    {
                        "count":2,
                        "id":1,
                        "startTime":1257966935229,

"lastSampleTime":1257966972191
                    },

What version of the product are you using? On what operating system?
GSON 1.4
RHEL 5.2
JDK 1.6

Please provide any additional information below.

I can not use any other serialize for JSON because i don't have the class.
Any idea, help, solution path will be helpful.

Original issue reported on code.google.com by drdet...@gmail.com on 12 Nov 2009 at 9:52

GoogleCodeExporter commented 9 years ago
I found the problem : PrettyPrinter. he removes a comma, don't know why.

Original comment by drdet...@gmail.com on 16 Nov 2009 at 8:11

GoogleCodeExporter commented 9 years ago
A test case that demonstrates the fix is in r593.

Original comment by limpbizkit on 3 Sep 2010 at 6:47