[hibernate-issues] [Hibernate-JIRA] Created: (HV-192) DigitsValidatorForNumber should strip trailing zeros
Hardy Ferentschik (JIRA)
noreply at atlassian.com
Tue Jul 28 05:06:15 EDT 2009
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list