[Cuis-dev] Errors in ProtcolBrowser
Juan Vuletich
juan at cuis.st
Mon May 20 08:48:15 PDT 2024
On 5/20/2024 5:31 AM, Bernhard Pieber via Cuis-dev wrote:
> Hi Juan,
>
> I just stumbled over an error in ProtocolBrowser. It you open a ProtcolBrowser on String the first selector #* (CharacterSequence) is selected. The code pane shows the correct method:
> * arg
>
> self shouldNotImplement.
>
> When you select Object in the class list and again select the first selector #* (CharacterSequence) it shows „error" in the code pane. The same happens when you select ProtoObject.
>
> When you select Collection or SequenceableCollection it shows the implementation of #* in Collection instead of the one in CharaterSequence:
> * arg
>
> ^ arg adaptToCollection: self andSend: #*
>
> It seems that simply deleting the method #selectedClassOrMetaClass fixes the problem. However, I am not sure if there isn't any code path where the deleted method would be needed. If not, why was the method overridden in the first place?
>
> Cheers,
> Bernhard
>
Hi Bernhard,
I think you're fix is totally OK. Just pushed it to GitHub.
Thanks!
--
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich
More information about the Cuis-dev
mailing list