jamesfredley commented on code in PR #15335:
URL: https://github.com/apache/grails-core/pull/15335#discussion_r2725876631
##########
grails-validation/src/main/groovy/grails/validation/Validateable.groovy:
##########
@@ -103,6 +103,18 @@ trait Validateable {
return constraintsMapInternal
}
+ /**
+ * Clears the cached constraints map, forcing re-evaluation on next access.
+ * This is primarily useful in testing scenarios where shared constraints
+ * may need to be re-evaluated after configuration changes.
+ *
+ * @since 7.0
+ */
+ @Generated
+ static void clearConstraintsMap() {
Review Comment:
Agreed, will create something which fixes tests another way for now and
potentially create another PR with this method against 7.1.x.
--
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]