[ 
https://issues.apache.org/jira/browse/BVAL-15?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Roman Stumm updated BVAL-15:
----------------------------

    Fix Version/s: 0.1-incubating

> @Min and @Max fail with very high values of long
> ------------------------------------------------
>
>                 Key: BVAL-15
>                 URL: https://issues.apache.org/jira/browse/BVAL-15
>             Project: BeanValidation
>          Issue Type: Bug
>          Components: jsr303
>    Affects Versions: 0.1-incubating
>            Reporter: Carlos Vara
>            Assignee: Roman Stumm
>             Fix For: 0.1-incubating
>
>         Attachments: minmaxfix.diff, MinMaxValidatorsForNumberTest.java
>
>
> Current implementations of MinValidationForNumber and MaxValidatorForNumber 
> fail when comparing very high long values. The reason is that they cast the 
> value to a double before comparing, so long values that cast to the same 
> double value may fail.
> On a side note: Hibernate Validator has the same problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to