From 3df2db25575b618f021c80ef579cc750b93186c1 Mon Sep 17 00:00:00 2001 From: Craig Date: Tue, 30 Apr 2013 11:44:50 -0300 Subject: [PATCH] Specify the type of 'args' in the 'getMessage' method In my application, I get a MissingMethodException. Specifying the type of the 'args' parameter fixes this problem. I'm really not sure where in the stack this bug is, but I do know that this change works around it. --- .../grails/jquery/validation/ui/JqueryValidationService.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grails-app/services/org/grails/jquery/validation/ui/JqueryValidationService.groovy b/grails-app/services/org/grails/jquery/validation/ui/JqueryValidationService.groovy index d4231a1..c1234df 100644 --- a/grails-app/services/org/grails/jquery/validation/ui/JqueryValidationService.groovy +++ b/grails-app/services/org/grails/jquery/validation/ui/JqueryValidationService.groovy @@ -212,7 +212,7 @@ class JqueryValidationService { return message.encodeAsJavaScript() } - private String getMessage(Class validatableClass, String propertyName, def args, String constraintName, Locale locale) { + private String getMessage(Class validatableClass, String propertyName, List args, String constraintName, Locale locale) { def code = "${validatableClass.name}.${propertyName}.${constraintName}" def defaultMessage = "Error message for ${code} undefined." def message = messageSource.getMessage(code, args == null ? null : args.toArray(), null, locale)