Missing char sequence implementation

Description

The documentation for @Postive mentions that it supports CharSequence but no implementation is found, I have attached a screenshot for your reference.

@Positive

Checks if the element is strictly positive. Zero values are considered invalid.

Supported data types

BigDecimal, BigInteger, byte, short, int, long and the respective wrappers of the primitive types; additionally supported by HV: any sub-type of CharSequence (the numeric value represented by the character sequence is evaluated), any sub-type of Number and javax.money.MonetaryAmount

Environment

None

Activity

Show:
Venkata Bhagavatula
June 12, 2020, 4:30 PM

HV000030: No validator could be found for constraint 'javax.validation.constraints.Positive' validating type 'java.lang.String'.

Guillaume Smet
June 15, 2020, 11:12 AM

Are you sure you are using 6.1.5.Final?

Because this issue got fixed in 6.1.4.Final as part of https://hibernate.atlassian.net/browse/HV-1760 .

If so, could you create a reproducer using https://github.com/hibernate/hibernate-test-case-templates/tree/master/validator ?

Thanks!

Venkata Bhagavatula
June 17, 2020, 3:00 PM

Sorry about this. Spring boot was picking up the older version even after I put in the newer version. After upgrading the project to spring boot 2.3.1, this issue has been resolved.

Guillaume Smet
June 17, 2020, 6:05 PM

No worries, thanks for confirming!

Assignee

Unassigned

Reporter

Venkata Bhagavatula

Labels

None

Feedback Requested

2020/06/15

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Affects versions

Priority

Trivial
Configure