Mikael
You wrote in message news:9an5pe$5uhu2$
[hidden email]...
> This time I found a bug in the CHB (4.01 Professional PL1). Try this:
>
> Create a new Object subclass called SuperClass.
> Create a new SuperClass subclass called SubClass.
>
> add a new method to SubClass, using an instance variable that you haven't
> defined yet, for example:
>
> SubClass>>testMethod
> test := 'test'
>
> Accept this. You will get an Error: undeclared 'test' and the text turns
> red.
>
> Open another CHB on the SuperClass and add the instance variable 'test'
> there. Now go back to the first CHB. The caption of the CHB will still
read
> SubClass (Unclassified), but the method #testMethod has now moved to
> ToolbarItem. Accepting the method again doesn't work, since of course
there
> is no instance variable called 'test' in ToolbarItem.
Thanks for your bug report. When I read it I thought it was much more
serious that it actually turns out to be. There is no particular
significance to ToolbarItem, that just happens to be the nearest node in the
tree to which it moves the selection when the 'Superclass' class is removed
and re-added. The method hasn't really moved anywhere, since it has never
been compiled. The "bug" is that the CHB isn't correctly maintaining the
selection in this case. It is annoying though, I grant you. Anyway I've
added it to the bug system as defect no. 180.
Regards
Blair