[FIX] DeclareInstVarFix-rr (sm)(cd)

rrobbes at info.unicaen.fr rrobbes at info.unicaen.fr
Mon Mar 8 09:11:20 UTC 2004


from preamble:

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

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 ivs, 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: 1720 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20040308/f026f0dc/DeclareInstVarFix-rr.cs.obj


More information about the Squeak-dev mailing list