Hello Dale,

Dale Ellis wrote:

> Thanks for your replies guys,
> 
> Apologies, should of thought to include version information.
> 
> I'm using JDK 1.6 and xstream is version 1.4.5, pulled in via maven
> dependency...
> 
>         <dependency>
>             <groupId>com.thoughtworks.xstream</groupId>
>             <artifactId>xstream</artifactId>
>             <version>1.4.5</version>
>         </dependency>
> 
> It did occur to me too that it might be related to the sets, maybe a
> compareTo() method is referencing an ID attribute which is getting it in a
> muddle but the ones I checked yesterday seem to order by sequence
> attributes or name attributes, I'll look further.

If the TreeSetConverter can use its optimized mode, then the compareTo is 
not called, but I cannot know without knowing Java version and vendor. For 
your environment it should work without.
 
> Also, I'll try different mode and see what happens, and let you know,
> hopefully will solve issue.

For ID mode you have to set a system alias for "id", because you have 
members of this name on your own. At least it will strip down the long 
references at the end of your file to a plain number.

- Jörg


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to