Bug 30820

GemStone/S

6.7.2.1, 6.7.2, 6.7.1, 6.7, 6.6.5, 6.6.4, 6.6.3.3, 6.6.3.2, 6.6.3, 6.6.2, 6.6.1, 6.6, 6.5.8, 6.5.7.5, 6.5.7, 6.5.6, 6.5.5, 6.5.4, 6.5.2, 6.5.1, 6.5, 6.3.1, 6.3, 6.2.x, 6.2, 6.1.6, 6.1.5, 6.1.x, 6.0.x, 5.1.5.1, 5.1.5, 5.1.4

All

Unused temporary variable result in incorrect instance variable assignment

In a method of the form:

  keyword: aValue
    | unusedTemporary |
    instanceVariable := aValue

If a temporary variable is declared, but not referenced, and there
is no further code in the method, the instance variable assignment
will not occur correctly.  This is due to an error in the byte
codes that the compiler generates for the unused temporary variable.

Workaround

Do not leave declarations of unused temporary varables in methods;
in any case, unused temporary variables waste resources.


                

Last updated: 6/18/04