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
#{extends 'main.html' /}
#{set title:'Edit Unit ${unit.name}' /}
<h1>Edit Unit ${unit.name}</h1>
then Play fails to serialize ("unbind") the class because it runs into an infinite recursion when trying to serialize the Query field. Eventually it throws a StackOverflowException.
The reason is because Play serializes the Unit instance into a map of json keys like this:
Consider the following model class:
If you try to put an instance of this class into the params map and use it in a Groovy/HTML template:
then Play fails to serialize ("unbind") the class because it runs into an infinite recursion when trying to serialize the Query field. Eventually it throws a StackOverflowException.
The reason is because Play serializes the Unit instance into a map of json keys like this:
... and so on forever.
A solution for the play-siena plugin might be to override the unBind() method in SienaPlugin to ignore Query fields altogether:
Please evaluate.
The text was updated successfully, but these errors were encountered: