users@jaxb.java.net

Re: Cycle Exception

From: Chris Handorf <chris_at_cybertrails.com>
Date: Sun, 16 Mar 2003 13:57:26 -0700

Hi Kohsuke,

Just an FYI - with the JAXB early access release, I used to get a Cycle Exception
if I had code like the following:

SomeObject s = new SomeObject();
SomeOtherObject o = new SomeOtherObject();

o.setfirstItem(s);
o.setSecondItem(s);
// now marshall object o

The SomeObject appears twice in the content tree, but it is clearly not a cycle.
I considered this a bug in the early access and it took me a little while to work around.
I am hoping the 1.0 release is now different.