You can't make the stubClass non-transient. That breaks serialization
compatibility with older versions.
In fact, it shouldn't work, there is a readObject method.
The stubClass is re-initialized in that method.
My guess is that the read/writeObject() methods are not getting invoked
because according to the spec they should be private instead of public.
They are private for the HandleImplIIOP.
This is probably a confusion between readObject and readExternal
in the original development?
ReadObject
anonymous wrote :
| For serializable objects, the readObject method allows a class to control the
deserialization of its own fields. Here is its signature:
|
| private void readObject(ObjectInputStream stream)
| throws IOException, ClassNotFoundException;
|
ReadExternal
anonymous wrote :
| Objects implementing java.io.Externalizable must implement the readExternal method to
restore the entire state of the object. It must coordinate with its superclasses to
restore their state. All of the methods of ObjectInput are available to restore the
object's primitive typed fields and object fields.
|
| public void readExternal(ObjectInput stream)
| throws IOException;
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090924#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...