tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 46464] Serialisation issues in catalina
Date Mon, 05 Jan 2009 13:43:18 GMT

--- Comment #2 from Sebb <>  2009-01-05 05:43:16 PST ---
I've also just discovered that Java appears not to call the private
readObject(ObjectInput) or writeObject(ObjectOutput) methods in DeltaSession.

It seems Java only looks for "private writeObject(ObjectOutputStream)" not
"private writeObject(ObjectOutput)", likewise for readObject(ObjectInput).

So at present, both StandardSession nor DeltaSession will use the default Java
serialisation - i.e. the readObject/writeObject methods that are defined will
not be used to override the standard mechanism.

It is not clear whether it is intentional or accidental that the default Java
serialisation mechanism is not being overridden.

If it is intended that the default mechanism is used, then I would suggest that
the readObject/writeObject methods are renamed.

Or at the very least, the Javadoc should make it very clear that the method
names are misleading.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message