Atm it is very cumbersome to specify multiple constraint per property and stop validation (on a property level) for the first failing constraint. See also
Since the Java reflection API does not allow to reflect on the order of the specified constraints you would need to introduce an order property for the constraints or some additional annotation.
I delegated it to our OpenJDK developer, who is in direct contact with the others. But he seems to get stuck on something. Going to urge it, thanks for reminding me.
FYI, there's this Jira instance https://bugs.openjdk.java.net/secure/Dashboard.jspa
but you can't register - you're given the account based on your OpenJDK role. I don't have any. So I need to bug that guy until he does it. Hold on.
Thanks for the update Ondra and Gunnar!
Actually I think it shouldn't be really hard to get a specification out for this. I think they only would have to add a couple of tests to verify the order. So it should be just a matter of formalizing the currrent behavior.
Sent to our OpenJDK mailing list, Gunnar in CC.