You have a single whitespace between ‘param
’ and ‘2
’, but why?
This single whitespace will confuse Groovy. Unfortunately Groovy failed to blame your coding mistake, got panicked, threw an Exception that doesn’t make sense.
You should write:
, String param2,