Hi Eric,
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.
Sorry, I cannot say something any longer to implementation details of such
old versions, there were too many modifications. Best you try the lastest
version first.
- Jörg
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email