[
https://issues.apache.org/jira/browse/VALIDATOR-444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sebb resolved VALIDATOR-444.
----------------------------
Fix Version/s: 1.7
Resolution: Fixed
Fixed by commit 439d3d5d372887ea92473f50f8b06b501eddf59d
> LongValidator: numbers bigger than the maxvalue are Valid
> ---------------------------------------------------------
>
> Key: VALIDATOR-444
> URL: https://issues.apache.org/jira/browse/VALIDATOR-444
> Project: Commons Validator
> Issue Type: Bug
> Components: Routines
> Affects Versions: 1.6
> Reporter: Martin Scholz
> Priority: Major
> Fix For: 1.7
>
>
> If you try to validate a Value bigger than 9,223,372,036,854,775,807 it keeps
> valid.
> for example with:
> {code:java}
> LongValidator longValidator = new LongValidator ( true,
> AbstractNumberValidator.STANDARD_FORMAT );
> longValidator.isValid("9223372036854775808") // is true should be false max
> long is 9223372036854775807
> {code}
> even worse is that:
>
> {code:java}
> longValidator.validate ( "9999999999999999999999999999999999999")
> {code}
> will give you the long maxValue as Result.
> The IntegerValidator will give you null and nonValid.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)