Annoying reproducible bug in 3.8-6665

Bert Freudenberg bert at impara.de
Thu Jun 22 17:28:34 UTC 2006


Am 22.06.2006 um 18:27 schrieb trilobyte at hoe.nu:

> Hi,
>
> There is an annoying bug I've been running into on the 3.8-6665  
> image.  It
> is totally reproducible from a stock image.
>
> 1)  Open the image, elect not to do updates.
> 2)  Open a workspace.
> 3)  doIt:  Smalltalk at: myForm put: nil
> 4)  doIt:  myForm _ Form extent: 100 at 100.
> 5)  Open a Browser.
> 6)  Middle-click in leftmost (class category) pane, search for  
> class Form.
> 7)  Left-click on any category in the method category pane.
> 8)  BOOM!  MessageNotUnderstood: UndefinedObject>>beginsWith:
>
> Seems to be something to do with _ to := conversion and the
> SystemDictionary.  Maybe I'm doing something wrong that is making the
> system flake out, but I don't think so...?

Not a bug. You are putting nil as key into Smalltalk, which is simply  
a Bad Thing To Do. Stop doing that. Smalltalk keys must be *Symbols*.  
They should be uppercase, too:

	Smalltalk at: #MyForm put: nil

To fix your image, do

	Smalltalk removeKey: nil.

- Bert -




More information about the Squeak-dev mailing list