classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] Re: Serialization: readResolve and writeReplace in pare


From: Mark Wielaard
Subject: Re: [cp-patches] Re: Serialization: readResolve and writeReplace in parent class
Date: Tue, 05 Jul 2005 19:24:08 +0200

On Tue, 2005-07-05 at 10:41 -0600, Tom Tromey wrote:
> >>>>> "Mark" == Mark Wielaard <address@hidden> writes:
> Suppose you have a hierarchy like:
> 
> class A { blah blah readResolve() }
> class B extends A { }
> class C extends B { }
> 
> You compile all of these.
> Then you go back and add 'private ... readResolve()' to B.

How precisely would you go back?

> Should C now really be using A's readResolve()?

No, it should use B's readResolve().
And it will since the caching is done at runtime. Or am I missing a way
to dynamically add the new method during runtime to an already loaded
Class by a ClassLoader?

Cheers,

Mark

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]