Variables with same name in message views
In message views, when calling an operation and clicking on the + to create a new variable to store the return value, it gives it the name of the operation. When calling the same operation and again clicking on the + to create a new variable, it will give it the same name even though is it a different variable.
This leads to issues when wanting to reuse this variable later in the message views, as both will show with the same name when listing the variables. Also, the code generator ends up declaring 2 variables with the same name which leads to compilation errors.
Comments (9)
-
-
- changed milestone to Introduction
- removed responsible
-
-
assigned issue to
-
assigned issue to
-
- changed status to resolved
Merged in Issues/407-Variables-with-same-name-in-message-views (pull request #87)
→ <<cset 3826dfe>>
-
References
#269: Moves making name unique to createTemporaryProperty to ensure consistency.Moves it out of MessageController. Renames public method to createAndAddTemporaryProperty.
→ <<cset 13d3eb775a19>>
-
References
#407: Makes text view for property rename unique to ensure temporary properties cannot be renamed to existing property name.→ <<cset 67510fda4fd9>>
-
References
#269: Moves making name unique to createTemporaryProperty to ensure consistency.Moves it out of MessageController. Renames public method to createAndAddTemporaryProperty.
→ <<cset 13d3eb775a19>>
-
References
#407: Makes text view for property rename unique to ensure temporary properties cannot be renamed to existing property name.→ <<cset 67510fda4fd9>>
-
Merged in Issues/269-402-Temporary-References (pull request #91)
- Log in to comment
Indeed. I think it should use the utility method for unique names in order to prevent that in the first place.