[Topaz-dev] serializing Article from Session.get()

Pradeep Krishnan pradeepk at soft-point.com
Sat Mar 8 16:30:38 PST 2008


Hi Jeff,

Jeff Suttor wrote:
> On 03/07/2008 05:38 PM, Pradeep Krishnan wrote:
>> Yes, this is due to proxies.
>> ...
>> So what needs to be done somehow is to
>> ensure that the proxy class somehow replaces the object that is 
>> serialized with an instance of its super-class. The alternatives that we 
>> could come up with all involves a copy/clone instance.
>

Looking further into this, the javassist proxy defines a writeReplace() 
method that we can override. Could you try the patch I checked in with 
r4938?

Cheers,
Pradeep





More information about the Topaz-Dev mailing list