Thanks David, this bug has now been fixed in the CVS. For information on obtaining the source code from our CVS server see the following:
http://castor.exolab.org/cvs.html Thanks, --Keith David Green wrote: > > Thanks! > > I've posted it as Bug 1174 > > David > > -----Original Message----- > From: Keith Visco [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 08, 2003 8:24 PM > To: [EMAIL PROTECTED] > Subject: Re: [castor-dev] XML Schema code generation and bound > properties > > Hi David, > > Sounds like a bug to me, I'll try to get that patched up in the CVS > ASAP. You may wish to file a bug via our buzilla for tracking purposes > (http://bugzilla.exolab.org) > > Thanks, > > --Keith > > David Green wrote: > > > > Using the source generator from XML Schema, I've noticed that some bound >properties (notably the ones with the _has_foo) are generated as follows: > > > > public void setContent(boolean content) > > { > > java.lang.Object oldContent = new Boolean(this._content); > > this._content = content; > > notifyPropertyChangeListeners("_content", oldContent, new >Boolean(this._content)); > > this._has_content = true; > > } //-- void setContent(boolean) > > > > The property change listeners are fired before the _has_content is set, thus >causing problems when attempting to marshal the class from a property change >listener. Shouldn't the set method look like this: > > > > public void setContent(boolean content) > > { > > java.lang.Object oldContent = new Boolean(this._content); > > this._content = content; > > this._has_content = true; > > notifyPropertyChangeListeners("_content", oldContent, new >Boolean(this._content)); > > } //-- void setContent(boolean) > > > > If there's a good reason for the existing code generation, please let me know. >Otherwise, can someone commit a fix for this? > > > > Thanks, > > > > David > > > > ----------------------------------------------------------- > > If you wish to unsubscribe from this mailing, send mail to > > [EMAIL PROTECTED] with a subject of: > > unsubscribe castor-dev > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
