Thanks David,

 

I’ve just assigned the call to myself, I’ll take a look for you.

 

Cheers,

 

Andy.

 


From: David Green [mailto:[EMAIL PROTECTED]
Sent: 04 August 2005 16:38
To: dev@castor.codehaus.org
Subject: [castor-dev] SourceGenerator, bound properties and serialization

 

Currently the XSD->Java source generation can produce JavaBeans with bound properties.  These JavaBeans are serializable.  Due to the design of the generated code, PropertyChangeListeners added to the JavaBeans also get serialized.  In our case the serialization of these PropertyChangeListeners is generally not desirable, and actually prevents the use of serialization. 

 

I propose a change to the generated JavaBeans where the listeners are transient such that they are not included in the serialization/deserialization process (see http://jira.codehausorg/browse/CASTOR-1152 for the patch).

 

Is this approach applicable to your project(s)?  Is there a case for including PropertyChangeListeners in serialization?  Is there a need for an option to enable/disable this feature when generating the JavaBeans, or is it valid to have the listeners always be transient?

 

I'm looking for feedback on this issue and hoping that someone on the committers list takes interest.

 

Thanks,


David



CODA has a new world-class consolidation package.
Find out more about www.coda.com/ocra





The information in this message is confidential and may be legally privileged. It may not be disclosed to, or used by, anyone other than the addressee. If you receive this message in error, please advise us immediately.

Internet emails are not necessarily secure. CODA does not accept responsibility for changes to any email which occur after the email has been sent. Attachments to this email may contain software viruses, which could damage your systems. CODA has checked the attachments for viruses before sending, but you should virus-check them before opening.

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.9/62 - Release Date: 8/2/2005

Reply via email to