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.