Did you try declaring the Map as transient?
On 3/20/2012 9:43 AM, Eric Lentz wrote:
> So I have a class, let's call it X, that has a Map. That Map
> contains the same reference to X.
>
> I want it to ignore the Map so that it never explodes it while it is
> finding the fields it needs to consider for serialization. Is there
> a way to do this?
>
> As near as I can tell, XStream considers all of the fields in a
> class, even if you omit it from the output. This came from seeing
> those fields being considered in AbstractReflectionConverter while
> stepping through the code. Further, the omit appears in the code to
> only be considered during output. Should I implement my own converter?
>
> By the way, this problem yields an OutOfMemoryError due to non-stop
> recursion. I'm using version 1.2.2 of XStream.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email