[Cuis-dev] Class>>#superclass: fix

Hernán Wilkinson hernan.wilkinson at 10pines.com
Sat Aug 10 18:35:22 PDT 2024


Hi,
 the #superclass: message was implemented in Class lately... that revealed
an error that appears when running some refactorings that are not included
in Cuis, in fact the refactoring is the IntroduceNullObject that is part of
CuisUniversity.
 That refactoring changes the superclass of a class using the message
#superclass:
 That message was only implemented in Behavior before and it did not change
the subclasses of the old and new superclass, leaving inconsistent the
hierarchy.
 Recently #superclass: was overwritten in Class removing the class from the
old superclass subclasses but not adding it to the new superclass
subclasses. This also leaves the hierarchy inconsistent, producing errors
when removing a class category for example.
 Attached is a fix for that. It adds the class whose superclass is changed
to the new superclass subclasses leaving the hierarchy cosistent.

Cheers!
Hernan.

-- 

*Hernán WilkinsonAgile Software Development, Teaching & Coaching*
*Phone: +54-011*-4893-2057
*Twitter: @HernanWilkinson*
*site: http://www.10Pines.com <http://www.10pines.com/>*
Address: Alem 896, Floor 6, Buenos Aires, Argentina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240810/0b091603/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6579-ChangeSuperclassFix-HernanWilkinson-2024Aug10-22h19m-HAW.001.cs.st
Type: application/octet-stream
Size: 558 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240810/0b091603/attachment.obj>


More information about the Cuis-dev mailing list