> Now, playing a little with RB I found a deprecated method send:
>
> hasSpecialSelector: aSymbol  ifTrueSetByte:
>
> You are using it in:
>
> RBClass >> existingMethodsThatReferTo:
>
> here:
>
>     special := self realClass environment
>         hasSpecialSelector: aSymbol
>         ifTrueSetByte: [ :value | byte := value ].
>
> the thing is that self realClass environment answer SystemDirectory but we
> should use Smalltalk / SmalltalkImage

You must be using a very old version of Refactoring-Core, this was
fixed quite some time ago.

> In addition, is there a way to automatically check all the sends of
> deprecated methods? because there may be a lot...I just tried a Class Rename
> refactor and I found this one, but I am sure there are more..

SmallLint finds some of them, but the rule should probably be improved.

Also running the tests can show you problems (given that the code is
all covered).

As I said, we fixed all the deprecated calls in Seaside 3.0, OB, RB,
eCompletion, Shout and PetitParser you just need to take the very
latest Pharo 1.1 and the very latest code of each package.

Lukas

-- 
Lukas Renggli
www.lukas-renggli.ch

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to