TextMorphForEditView >> keyStroke:
silently shadows a Trunk method
#395
Labels
bug
Wrong behaviour that needs to be fixed
This extension method shadows a method in the Trunk:
https://github.com/hpi-swa-teaching/IMAPClient/blob/5437c6e6c9194ec38035562a12a9ae8d4b075764/packages/IMAPClient-UI.package/TextMorphForEditView.extension/instance/keyStroke..st
This is usually a bad practice for several reasons, including but not limited to:
For the last point, there is a technique called override extension method: By renaming the category of the extension method (
*IMAPClient-UI
) into any name that ends with-override
, the method is officially marked as an override method. When the method is removed again at a later point via the extensor, Squeak will not remove it completely but instead restore the original trunk method.Apart from that, it would be great if this extension method could be eliminated completely. Since Squeak 5.3, the related bug has also been fixed in the Trunk, so as soon as you decide to drop support for Squeak 5.2, the method could be removed completely.
The text was updated successfully, but these errors were encountered: