ClassBuilder validation bug

Raab, Andreas Andreas.Raab at disney.com
Wed Sep 22 23:41:28 UTC 1999


Craig,

You do know that adding an instvar to ContextPart will break the system do
you?! Since both, MethodContext and BlockContext are subclasses of
ContextPart recompiling it will have *very* serious implications. That is
why the class builder rejects to recompile ContextPart.

  A.
--
+===== Andreas Raab ========= (andreasr at wdi.disney.com) ==+
| Walt Disney Imagineering        Phone: +1 818 544 5016  I
I Glendale, CA                    Fax:   +1 818 544 4544  I
+======< http://isgwww.cs.uni-magdeburg.de/~raab >========+


> ----------
> From: 	Craig Latta
> Reply To: 	squeak at cs.uiuc.edu
> Sent: 	Wednesday, September 22, 1999 4:44 PM
> To: 	raab at isgnw.CS.Uni-Magdeburg.De
> Cc: 	recipient list not shown
> Subject: 	ClassBuilder validation bug
> 
> 
> Hi Andreas--
> 
> 	I tried to add a class variable to ContextPart, and got
> "BlockContext cannot be recompiled" from
> ClassBuilder>>validateSubclassFormat:from:forSuper:extra:. It seems that
> one may no longer redefine a normal class which has a variable subclass.
> 
> 	For now, I just changed "oldType == newType" near the end of the
> method to "(newType == #normal or: [oldType == newType])". The next thing
> I would do is change "oldType" and "newType" to more descriptive names,
> but I need to get back to work...
> 
> 
> 	thanks,
> 
> -C
> 
> 
> --
> Craig Latta
> composer and computer scientist
> craig.latta at netjam.org
> www.netjam.org
> latta at interval.com
> Smalltalkers do: [:it | All with: Class, (And love: it)]
> 





More information about the Squeak-dev mailing list