|
I think the problem is caused by the change made for
HV-814
and the attempt to make start- and endIndex independent of ignoreNonDigitCharacters. As it stands now the validator only works if the input strings have the form 116.474.078-42. One way to handle this for your case is to create a custom @CPF annotation. You don't have to provide any constraint validator implementation, you just need to adjust the configuration of the composing constraints. See also CPF.java
|