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
No incorrect cast should be performed on a controller action that takes a String parameter.
Actual Behaviour
In the example project attached to this ticket you can see that the exampleController defines an echo action, this action takes a String parameter named person. When another action in the same controller defines a local variable with the same name (person) and a different type (type Person in the example), an incorrect cast in being performed. The person parameter, which should be received as String is being converted to the type Person and a GroovyCastException is thrown.