Mantis - Squeak
Viewing Issue Advanced Details
6478 System minor always 05-09-07 07:44 04-18-10 21:55
aran  
andreas  
normal  
closed 3.9  
fixed  
none    
none trunk  
0006478: Setting up a global variable as a class alias breaks change-compression
Perhaps it's a misguided thing to do, but if you set up a global variable to refer to a class - e.g.,

   SimpleMorphForDemo := RulerMorph

and then try to condenseChanges, RulerMorph appears twice in the list of classes. On the second attempt to process the class, everything goes pear-shaped. A crash in the middle of condensing changes is, of course, quite disconcerting.

I think this can be fixed by a small change to SystemDictionary>>classNames -

replace
  cachedClassNames _ names asSortedCollection].
with
  cachedClassNames _ names asIdentitySet asSortedCollection].

I'm still living in the pre-Traits world, but perhaps a similar fix would make sense for traitNames too.
child of 0007480feedback  Issues that should be fixed in 4.1 

Notes
(0013601)
andreas   
03-30-10 04:06   
Fixed in 4.1 (System-ar.304).