Closed GoogleCodeExporter closed 9 years ago
Since BagOfPrimitives class in your case is an inner class (not a static inner
class)
it needs a reference to the parent class GsonTester to work.
If your BagOfPrimitives was a static inner class, this will work without any
issues.
However, for the other case, you need to provide an instance creator since
there is
no way to constructor an inner class without a reference to the outer class to
which
it is bound.
Original comment by inder123
on 13 Oct 2008 at 7:27
See r262 for an example of how non-static inner classes can be serialized and
deserialized with Gson.
Original comment by inder123
on 13 Oct 2008 at 7:49
Original issue reported on code.google.com by
mmuelle...@googlemail.com
on 30 Sep 2008 at 3:59