Hello again Jörg,

and sorry for the late reply.

I'm using the last version of XStream that can be found in the website. If
I have some time this week I'll try to see if the problem was just Android
or I can replicate it in a simple Java project. Thank you for everything :)

Kind regards,

Gonzalo.

El 24/05/2012 17:54, "Jörg Schaible" <[email protected]> escribió:

> Hi,
>
> Gonzalo Rodríguez Píriz wrote:
>
> > On Thu, May 24, 2012 at 4:23 PM, Jörg Schaible
> > <[email protected]>wrote:
>
> [snip]
>
> >> Basically, if you can read it once, you should be able to read it twice.
> >> ;-)
> >>
> >> Can you try to reproduce this outside of Android? The TreeMapConverter
> >> does some really ugly hacks though.
>
> Just in case you wonder: The converter tries to prevent the call of the
> (internal) comparator at all, since the elements are already in order and
> the call might have other unwanted side-effects.
>
> >> Do you use an own Comparator? Do your
> >> elements in the Map contain (indirect) references on the Map itself?
> >>
> >> - Jörg
> >>
> > Thank you Jörg,
> >
> > yes, that was what I though too :D
> >
> > Definitely it's a problem with the TreeMap, I replaced it with a HashMap
> > and now it works all the time. Anyway, the TreeMap was very simple, I
> > didn't use a comparator and it didn't had any references, only pairs
> > key-value with Boolean, Integer and String values. If you want me to I
> can
> > try to reproduce it outside Android later and see if it crashes too.
>
> In that case, I fear, it's Android only. Which XStream version you're
> using?
>
> > Thanks for the help :)
>
> You're welcome,
> Jörg
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

Reply via email to