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
Currently the entity code generator will generate toString() to entities and data object that end up using the (also generated) UserAppendable and EmailAppendable objects, both of which have a generated method:
publicVarStringappendTo(VarStringvs) {...}
However, if you look carefully at the generated appendTo code, it leads to infinite recursion, if for some reason one calls the toString() method on an entity or data object! This is particularly annoying in the IntelliJ debugger, as it wants to convert objects to strings for display purposes, steping through the code, leading to very slow debugging, since at each step it generates StackOverflow exception due to the infinite recursion cause by toString().
The text was updated successfully, but these errors were encountered:
Environment Details
Describe the bug
Consider the following ES code of two entities pointing to each other:
Currently the entity code generator will generate
toString()
to entities and data object that end up using the (also generated) UserAppendable and EmailAppendable objects, both of which have a generated method:However, if you look carefully at the generated appendTo code, it leads to infinite recursion, if for some reason one calls the toString() method on an entity or data object! This is particularly annoying in the IntelliJ debugger, as it wants to convert objects to strings for display purposes, steping through the code, leading to very slow debugging, since at each step it generates StackOverflow exception due to the infinite recursion cause by toString().
The text was updated successfully, but these errors were encountered: