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

Martin Scholz updated VALIDATOR-444:
------------------------------------
    Description: 
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. 

 

  was:
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.getInstance ().validate ( "9999999999999999999999999999999999999")
{code}
will give you the long maxValue as Result.

The IntegerValidator will give you null and nonValid. 

 


> 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
>
> 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
(v7.6.3#76005)

Reply via email to