Updates:
Status: Accepted
Labels: -Version-GLASS0.231 Version-2.4.x
Comment #2 on issue 219 by
[hidden email]: to:do: block parameter not
captured by closure in loop
http://code.google.com/p/glassdb/issues/detail?id=219Nick this is a "known bug" although I don't see a glassdb bug on this
one ... so this bug will act as the marker.
In GemStone/S 2.x, block temporaries are shared across invocations of a
nested blocks so that the last value of the temporary is the value in
all "copies" of the block.
The workaround is to not use block temporaries to for values that are to be
shared between blocks.
If you take a look at the WALotsaLinksFunctionalTest you will see the same
bad behavior that you've documented. The WALotsaLinksGemStoneFunctionalTest
is an implementation that works around the block temp bug.
Also see Issue 152 and Issue 221 for additional examples.
We expect to fix this bug in GemStone3.0