[Bug??] Question about RefactoringBrowser

Herbert König herbertkoenig at gmx.net
Wed Jan 25 09:41:07 UTC 2006


HK> So I select the instvar, use RB selection pullUp and get the debugger
HK> like in the attached error....gif, saying the instvar is multiply
HK> defined.

after digging in deeper, the problem is that
ClassBuilder>>validateInstvars:from:forSuper: receives the instvar I
want to move up twice in the instvarArray.

Looking down the callstack this array is created from a string which is
built using Class>>addInstVarName: which seems to be sent one time too

The sender of that message is beyond my current knowledge of
smalltalk but this seems to be a bug.

I'm reluctant to enter it into Mantis as it might as well just be that
I don't know enough.

I've created two classes, if you file them in and try to move
ivarIwantToMoveUp into the superclass via RB you get the error.


Herbert                            mailto:herbertkoenig at gmx.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NewToBeSuperclass.st
Type: application/octet-stream
Size: 242 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20060125/e9842723/NewToBeSuperclass.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TooFatSubclass.st
Type: application/octet-stream
Size: 712 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20060125/e9842723/TooFatSubclass.obj

More information about the Squeak-dev mailing list