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

Carlos Vara (JIRA) noreply at atlassian.com
Sun Jun 20 15:05:22 EDT 2010


@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


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