I incorrectly used a logger in a class by forgetting the declaration to static.
I wanted to make a Json String out of the object of the class by the following
way:
Gson gson = new Gson();
String json = gson.toJson(o, o.getClass());
There comes a java.lang.StackOverflowError exception, as you can see in my
attachment.
When I declared the logger correctly, everything was fine.
My configuration:
- gson 2.1
- Win7, 64bit
- java6, u24, 64bit
Original issue reported on code.google.com by christia...@gmail.com on 21 Feb 2012 at 2:12
Original issue reported on code.google.com by
christia...@gmail.com
on 21 Feb 2012 at 2:12Attachments: