Hi James,
Castor XML needs to detect cyclic object references when marshalling.
The problem is that I do not know exactly where and how this is done.
Let's see if Werner has an idea where to start searching for it.
Having said that I still want you to create a jira issue for this.
Regards
Ralf
James Procter schrieb:
James Procter wrote:
Ralf Joachim wrote:
your enhancement to hash code calculation sounds reasonable but even
if it is a very small addition we like to track that with jira. Can
you therefore please create a new issue in jira and attach all
relevant files.
many thanks. I thought that might be the response! I'll get round to
it as soon as I can.
I still haven't got around to formalising this as a JIRA bug fix and
test case, but have been testing the fix in place and have run into a
significant issue with cyclic references.
Are you aware of any existing mechanism within the castor source
generator for ensuring a method that recurses on the unmarshalled DOM
breaks cycles due to cyclic IDREF attributes :
<me id="1">
<bar id="3" meref="1"/>
</me>
This is a contrived example (obviously) - but you can see that with the
hashCode computation already implemented in castor, cycles will occur.
I have a way to fix this - but I'd rather use any existing mechanisms
for this kind of case if they already exist. Do they ?
many thanks,
Jim Procter.
--
Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
72127 Kusterdingen
Germany
Tel. +49 7071 3690 52
Mobil: +49 173 9630135
Fax +49 7071 3690 98
Internet: www.syscon.eu
E-Mail: [EMAIL PROTECTED]
Sitz der Gesellschaft: D-72127 Kusterdingen
Registereintrag: Amtsgericht Stuttgart, HRB 382295
Geschäftsleitung: Jens Joachim, Ralf Joachim
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email