About AnObsoleteSunitNameResolver

Pavel Krivanek squeak1 at continentalbrno.cz
Fri Aug 4 13:39:17 UTC 2006


On 8/3/06, Lic. Edgar J. De Cleene <edgardec2001 at yahoo.com.ar> wrote:
> Maurizio Boriani puso en su mail :
>
> > Hi all,
> >    some day until now everytime I run a test (written by me or not) I got
> > this error message (in debug )
> >
> > AnObsoleteSUnitNameResolver class>> classNamed (messageNotUnderstand).
> >
> > This class (AnObsoleteSunitNameResolver) cannot be found in SystemBrowser...
> >
> > As last thing before this I done a massive update by SqueakMap...
> >
> > Anyone has any idea about this or how to debug this error
> >  (as said I cannot find this class nowhere :( )
> >
> > thanks in advance.
>
> Save your image and in a backup copy you could do:
>
> SmalltalkImage current fixObsoleteReference
>
> If still have obsoletes , you could try:
>
> | outputStream arreglar|
> Transcript open.
>     outputStream _ ReferenceStream fileNamed: 'clasesObsoletas.txt'.
> arreglar _ (Smalltalk obsoleteClasses).
> Transcript show: arreglar size;cr.
>   1 to: arreglar size do: [:c | (arreglar at:c )
>  allInstancesDo: [ :i | i becomeForward: nil].
> outputStream nextPut: (arreglar at:c ) printString.
> Transcript show: (arreglar at:c ) printString  ;cr.
> (arreglar at:c )  becomeForward: nil.].
> outputStream close.
> 3 timesRepeat: [Smalltalk garbageCollect].
>
> And beg you image don't blow :=)
>
> Edgar

Removing of obsolete classes using becomeForward: nil is *very bad
idea*. You have to find all references to obsoleteClasses manually,
clean all source codes, recompile stricken methods and so on.

-- Pavel



More information about the Squeak-dev mailing list