[hibernate-issues] [Hibernate-JIRA] Resolved: (HV-335) @Max, @Min, @DecimalMax and @DecimalMin can give wrong results

Hardy Ferentschik (JIRA) noreply at atlassian.com
Mon Jun 21 09:31:23 EDT 2010


     [ http://opensource.atlassian.com/projects/hibernate/browse/HV-335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hardy Ferentschik resolved HV-335.
----------------------------------

    Resolution: Fixed

Thanks for the patch. Applied on trunk.

> @Max, @Min, @DecimalMax and @DecimalMin can give wrong results
> --------------------------------------------------------------
>
>                 Key: HV-335
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-335
>             Project: Hibernate Validator
>          Issue Type: Bug
>    Affects Versions: 4.1.0.CR1
>            Reporter: Carlos Vara
>            Assignee: Hardy Ferentschik
>             Fix For: 4.1.0.Final
>
>
> Current implementation of the validators convert the number to validate to a double. If validating a long, this can produce loss of precision and give a wrong result.
> For reference: https://issues.apache.org/jira/browse/BVAL-15

-- 
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