Mantis - Squeak
Viewing Issue Advanced Details
7090 Traits minor always 06-11-08 16:56 04-18-10 22:04
noha  
laza  
normal  
closed  
fixed  
none    
none trunk  
0007090: TraitsTests pollutes ProtoObject subclasses
In SetUp Phase for TraitsTests (TraitsResource) classes are created. On this class the superclass is deleted manually via superclass: nil.
The classes are removed/obsoleted afterwards but as there is no superclass it can't be deleted from superclass subclasses.

All classes are created as subclass of ProtoObject. So the subclasses array of ProtoObject gets polluted by running the TraitsTest. I'll attach a fix which also calls ProtoObject removeSubclass: xxx
 TraitsTestSubclassesCleanup-M7090.1.cs [^] (2,347 bytes) 06-11-08 16:57

Notes
(0013356)
lewis   
10-06-09 02:00   
From: Adrian Lienhard <adi@netstyle.ch>
To: The general-purpose Squeak developers list <squeak-dev@lists.squeakfoundation.org>
Subject: Re: [squeak-dev] ClassTraitTest pollutes system
Date: Mon, 5 Oct 2009 20:41:54 +0200
         
Isn't this mantis issue 7090?
 
You may also want to check how we fixed this over at Pharo (more than
a year ago): http://code.google.com/p/pharo/issues/detail?id=13 [^]
 
HTH,
Adrian
(0013357)
noha   
10-06-09 06:55   
That is the same fix. I did it originally in pharo and then I added it to mantis so that squeak can fix it, too
(0013362)
laza   
10-07-09 04:46   
I filed the changeset into the trunk