[hibernate-issues] [Hibernate-JIRA] Resolved: (HV-192) DigitsValidatorForNumber should strip trailing zeros
Hardy Ferentschik (JIRA)
noreply at atlassian.com
Tue Jul 28 06:10:13 EDT 2009
[ http://opensource.atlassian.com/projects/hibernate/browse/HV-192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hardy Ferentschik resolved HV-192.
----------------------------------
Resolution: Fixed
> 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.CR1
>
>
> 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