This one time, at band camp, Kvidera, Douglas said:

KD>The question of why Castor XML cannot find the mutator when no "set-method"
KD>is in the mapping file might be a question for Arnaud and/or Keith.
KD>However, if you're fielding Castor JDO questions, then perhaps the question
KD>of why it can't find the mutator when it _is_ defined by "set-method"
KD>belongs to you.
KD>
KD>What I don't understand is if both XML and JDO are using the mapping and
KD>persist package classes, why should they behave differently with respect to
KD>finding the mutator method.
KD>
KD>I did some debugging and found that while the FieldMolder$ReflectService for
KD>the collection field has an _addMethod (but no _setMethod), the FieldMolder
KD>itself has _addable set to false.  When CollectionProxy$ColProxy.close() is
KD>called, it finds the FieldMolder not addable and calls setValue() for which
KD>there is none.
KD>
KD>I copied lines 592-593 of FieldMolder.java, which set _addable if there is
KD>an add method, to line 650.  This fixed the error.

Doug,

I'll look into this as soon as I am able. Thanks for the info and
a potential fix.

Bruce
--

perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to