[FIX] DeclareInstVarFix-rr

marcus at ira.uka.de marcus at ira.uka.de
Sat Mar 13 16:15:51 UTC 2004


from preamble:

"Change Set:		DeclareInstVar-rr
Date:			6 March 2004
Author:			Romain Robbes

v2: fixed to not uncomment the DeclareClass changes. -- md
       please file in DeclareClass-rr before.

Fixes the bug in the declaration of inst vars. Previously declaring an
instance variables
when an unknown variable was encountered could result in the wrong iv to
be referenced if there were instance variables in some of the class'
superclasses.
This was visible when the method's bytecode were decompiled. Recompiling
the method would solve the problem. 

This changes only adds a line to correctly compute the index, by taking
into account
ivs in the superclasses, and uncomments the menu entry as it works
correctly now.
No test is included as this is quite hard to automate. Try it in a class
with a superclass
which contains iv, and check the result in the decompiled view of the
method. "!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DeclareInstVarFix-rr.cs.gz
Type: application/octet-stream
Size: 1731 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20040313/e8c0c01f/DeclareInstVarFix-rr.cs.obj


More information about the Squeak-dev mailing list