> does this sound reasonable/the correct behaviour?
It is the expected behavior, although I'm not sure if that's the
desirable behavior.
The error message "cycle" is confusing. It should be more like "the same
object is appering more than once in the object graph"
I guess at least a part of the motivation to flag this as an error is
our assumption that under the normal circumstances you wouldn't want to
copy the same fragment more than once into the same XML --- that just
seems like a bad design of XML. Plus, the unmarshaller never reuses the
same object in two places. And I also thought about the ID issue.
But now that I think about it, I guess we can construct a consistent
semantics even if we allow the same object to appear more than once.
I'd be interetsed in knowing why you'd like to print one D object twice.
regards,
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net