Andreas Raab uploaded a new version of ReleaseBuilder to project The Trunk:
http://source.squeak.org/trunk/ReleaseBuilder-ar.43.mcz==================== Summary ====================
Name: ReleaseBuilder-ar.43
Author: ar
Time: 31 December 2009, 3:14:53 am
UUID: a6e0fb19-bc46-834f-abea-23cfbc54f216
Ancestors: ReleaseBuilder-nice.42
Final trait cleanup touches: Avoid Undeclared references.
=============== Diff against ReleaseBuilder-nice.42 ===============
Item was changed:
----- Method: ReleaseBuilderFor3dot10>>flushCaches (in category 'managing updates') -----
flushCaches
MCFileBasedRepository flushAllCaches.
MCDefinition clearInstances.
Smalltalk garbageCollect.
"Initialization required for tests: strange why this is not a teardwon method"
+ Smalltalk at: #SendCaches ifPresent:[:aClass| aClass initializeAllInstances].!
- SendCaches initializeAllInstances.!
Item was removed:
- ----- Method: ReleaseBuilderFor3dot11>>prepareToUnloadTraits (in category 'unloadPackages') -----
- prepareToUnloadTraits
- "ReleaseBuilderFor3dot11 new prepareToUnloadTraits"
- SystemChangeNotifier uniqueInstance
- noMoreNotificationsFor: ProvidedSelectors current;
- noMoreNotificationsFor: RequiredSelectors current;
- noMoreNotificationsFor: LocalSends current.
- self unloadTraitsStubOutAcessors.
-
- [ClassDescription subclass: #Metaclass
- instanceVariableNames: 'thisClass'
- classVariableNames: ' '
- poolDictionaries: ' '
- category: 'Kernel-Classes'.
- ClassDescription subclass: #Class
- instanceVariableNames: 'subclasses name classPool sharedPools environment category'
- classVariableNames: ' '
- poolDictionaries: ' '
- category: 'Kernel-Classes'.
- ] on: Warning do: [:warning | warning resume].
-
- Smalltalk allTraits do: [:trait | trait removeFromSystem. trait := nil].
- "Recompile all methods that were part of a trait"
- SystemNavigation default allBehaviorsDo: [:class | class selectorsAndMethodsDo: [:sel :method | class ~~ method methodClass ifTrue: [class recompile: sel]. method := nil]. class := nil].
- "Remove references to traits from various places in the code"
- self unloadTraits!