[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cp-patches] Re: Serialization: readResolve and writeReplace in pare
From: |
Tom Tromey |
Subject: |
Re: [cp-patches] Re: Serialization: readResolve and writeReplace in parent class |
Date: |
05 Jul 2005 10:41:29 -0600 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
>>>>> "Mark" == Mark Wielaard <address@hidden> writes:
>> > I wonder if there is a strange case here where someone adds a private
>> > method to the class hierarchy "later" (after all the other classes are
>> > compiled). Should the private method hide the superclass methods of
>> > the same signature? Perhaps this is an incompatible change, offhand I
>> > forget.
Mark> Agreed and there are Mauve tests to proof that. Thanks.
Mark> I have no idea how this strange case looks like. Since it seems that any
Mark> "later" class can only be added at the bottom of the class hierarchy.
Mark> Tom, do you have an example of what you are thinking of?
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.
Should C now really be using A's readResolve()?
Tom