abhijeetjais20 / google-gson

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

StackOverflowError on Logger #412

Closed GoogleCodeExporter closed 9 years ago

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

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by limpbizkit on 18 Mar 2012 at 5:22