Patch: Serialization for java.beans.{PropertyChangeSupport,VetoableChangeSupport}
Warren Levy
warrenl@cygnus.com
Thu Nov 16 13:31:00 GMT 2000
Folks,
Here are the changes for 2 more special case serialization classes,
java.beans.{PropertyChangeSupport,VetoableChangeSupport}. In doing these,
I found an assert failure in the reflection code having to do with
Constructors; I've included that patch here too, since the serialization
code being checked in is dependent on it. Enjoy!
--warrenl
2000-11-16 Warren Levy <warrenl@cygnus.com>
* java/beans/PropertyChangeSupport.java (propertyListeners): Made
transient.
(listeners): Made transient.
(source): Renamed from 'bean'.
(children): New field for serialization.
(propertyChangeSupportSerializedDataVersion): Ditto.
(serialVersionUID): Ditto.
(writeObject): New serialization method.
(readObject): New serialization method.
* java/beans/VetoableChangeSupport.java (propertyListeners): Made
transient.
(listeners): Made transient.
(source): Renamed from 'bean'.
(children): New field for serialization.
(vetoableChangeSupportSerializedDataVersion): Ditto.
(serialVersionUID): Ditto.
(writeObject): New serialization method.
(readObject): New serialization method.
* java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
to allow constructor to have a return type (i.e. the class that the
constructor constructs).
More information about the Java-patches
mailing list