You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bval.apache.org by "Roman Stumm (JIRA)" <ji...@apache.org> on 2010/04/06 13:27:33 UTC
[jira] Assigned: (BVAL-15) @Min and @Max fail with very high values
of long
[ https://issues.apache.org/jira/browse/BVAL-15?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Roman Stumm reassigned BVAL-15:
-------------------------------
Assignee: Roman Stumm
> @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
> 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.