@Negative*/@Positive* do not support CharSequence as documented

Description

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.

Environment

None

Assignee

Unassigned

Reporter

PhilC

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

Priority

Minor
Configure