You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the process of debugging, the string value of an object variable will be recorded by dynamically invoking its toString() method. However, a side-effect of such an operation is to modify the program state if the toString() writes some fields of the object variable.
A possible solution is to remember the program state before toString() method invocation and restore the state after the invocation is finished.
The text was updated successfully, but these errors were encountered:
llmhyy
changed the title
The toString() method invocation may change the behavior of original program
Side Effect of toString() Method Invocation
May 22, 2016
In the process of debugging, the string value of an object variable will be recorded by dynamically invoking its toString() method. However, a side-effect of such an operation is to modify the program state if the toString() writes some fields of the object variable.
A possible solution is to remember the program state before toString() method invocation and restore the state after the invocation is finished.
The text was updated successfully, but these errors were encountered: