There are two caveats with this enhancement though:

  • It is not symmetric w/ @Min and @Max
  • It will force implementers to have conditional error messages depending on whether the exclusive flag is set or not. Even though selection of the right message is possible via ConstraintValidatorContext it is still a first for built-in constraints. To be fully portable we would need to specify how the alternative message keys should look like
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira