Issue Type: Bug Bug
Affects Versions: 1.4.2
Assignee: Joerg Schaible
Attachments: bunnies-xstream.zip
Components: Annotations
Created: 01/Oct/12 6:33 AM
Description:

When using implicit collections, when one collection references items in another collection, XStream is unable to properly reproduce the object graph, and one of the collections ends up being null.

Attached is a sample project with a JUnit test which reproduces the issue. It spits the XML to System.out before trying to deserialize, so you can see what it's generating. The resulting XML looks like this:

<bunny-family>
  <bunny name="mother">
    <bunny-child name="15b2b5a2-2d52-4216-b714-102dd327611b"/>
    <bunny-child name="e3674e4a-8c0b-41bc-ad99-8153595c6d0b"/>
  </bunny>
  <bunny name="father">
    <bunny-child reference="../../bunny/bunny-child"/>
    <bunny-child reference="../../bunny/bunny-child[2]"/>
  </bunny>
</bunny-family>
Project: XStream
Priority: Minor Minor
Reporter: Steven Swor
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to