DigitsValidatorForNumber should strip trailing zeros
----------------------------------------------------
Key: HV-192
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HV-192
Project: Hibernate Validator
Issue Type: Bug
Components: validators
Affects Versions: 4.0.0.Beta2
Reporter: Hardy Ferentschik
Assignee: Hardy Ferentschik
Fix For: 4.0.0.Beta3
new BigDecimal( num.toString() ).stripTrailingZeros() should be used. This is consistent
with the implementation of Digits in the legacy validator.
See also
https://forum.hibernate.org/viewtopic.php?f=9&t=998581
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira