Skip to content

Commit c11c6fb

Browse files
Fix ambiguous method overloading problem
Related to #9761
1 parent c0b66a7 commit c11c6fb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

grails-plugin-validation/src/main/groovy/grails/validation/Validateable.groovy

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ trait Validateable {
7979
}
8080

8181
boolean validate() {
82-
validate null
82+
validate null, null, null
8383
}
84+
8485
boolean validate(Closure<?>... adHocConstraintsClosures) {
8586
validate(null, null, adHocConstraintsClosures)
8687
}
@@ -94,7 +95,7 @@ trait Validateable {
9495
}
9596

9697
boolean validate(List fieldsToValidate) {
97-
validate fieldsToValidate, null
98+
validate fieldsToValidate, null, null
9899
}
99100

100101
boolean validate(List fieldsToValidate, Closure<?>... adHocConstraintsClosures) {

0 commit comments

Comments
 (0)