jdaugherty commented on code in PR #15557:
URL: https://github.com/apache/grails-core/pull/15557#discussion_r3341527549
##########
grails-datamapping-validation/src/main/groovy/org/grails/datastore/gorm/validation/constraints/AbstractConstraint.java:
##########
@@ -233,13 +233,30 @@ protected String getDefaultMessage(String code) {
return messageSource.getMessage(code, null,
LocaleContextHolder.getLocale());
}
- return ConstrainedProperty.DEFAULT_MESSAGES.get(code);
+ return getDefaultMessageFromBundle(code);
}
catch (Exception e) {
- return ConstrainedProperty.DEFAULT_MESSAGES.get(code);
+ return getDefaultMessageFromBundle(code);
}
}
+ /**
+ * Gets default message from MESSAGE_BUNDLE when the interface-constant
static-init order (Groovy 5)
Review Comment:
This comment doesn't actually explain why Groovy does this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]