tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46464] Serialisation issues in catalina
Date Mon, 05 Jan 2009 13:43:18 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46464





--- Comment #2 from Sebb <sebb@apache.org>  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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message