The hibernate validator documentation for @Negative, @NegativeOrZero, @Positive, and @PositiveOrZero states that hibernate validator supports validating any subtype of CharSequence:
additionally supported by HV: any sub-type of CharSequence (the numeric value represented by the character sequence is evaluated)
However, when attempting to validate a String field with any of those constraints, hibernate validator throws the following exception:
Here is a unit test that demonstrates the problem:
Please either update the documentation, or add support for CharSequences to these constraints.
You're right, the validators are missing.
Did you have any use for them? Maybe you would be interested in contributing? It shouldn't be too hard to add them if you need them.
I have no immediate need for them. Simply updating the documentation would be fine with me.