Skip to content

Commit c18c769

Browse files
committed
workaround for GROOVY-7308 (fixed in Groovy 2.3.11)
1 parent 7a585af commit c18c769

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

grails-plugin-domain-class/src/main/groovy/org/codehaus/groovy/grails/plugins/DomainClassPluginSupport.groovy

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@
1414
* limitations under the License.
1515
*/
1616
package org.codehaus.groovy.grails.plugins
17-
18-
import org.springframework.context.ApplicationContext
19-
import org.springframework.validation.BeanPropertyBindingResult
2017
import grails.validation.ValidationErrors
21-
18+
import org.springframework.context.ApplicationContext
2219
/**
2320
* @author Graeme Rocher
2421
* @since 1.1
@@ -34,7 +31,7 @@ class DomainClassPluginSupport {
3431
return true
3532
}
3633

37-
def constraints = object.constraints
34+
def constraints = object.getConstraints()
3835
if (constraints) {
3936
for (prop in constraints.values()) {
4037
prop.messageSource = ctx.getBean("messageSource")

0 commit comments

Comments
 (0)