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

Sebb resolved VALIDATOR-331.
----------------------------

       Resolution: Fixed
    Fix Version/s: 1.4.1

URL: http://svn.apache.org/r1562475
Log:
VALIDATOR-331 IBANCheckDigitTest.createInvalidCodes(String[] codes) uses wrong 
values

Modified:
    commons/proper/validator/trunk/src/changes/changes.xml
    
commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigitTest.java

> IBANCheckDigitTest.createInvalidCodes(String[] codes) uses wrong values
> -----------------------------------------------------------------------
>
>                 Key: VALIDATOR-331
>                 URL: https://issues.apache.org/jira/browse/VALIDATOR-331
>             Project: Commons Validator
>          Issue Type: Bug
>    Affects Versions: 1.4.0 Release
>            Reporter: Sebb
>             Fix For: 1.4.1
>
>
> The method IBANCheckDigitTest.createInvalidCodes(String[] codes) tries to
> create bad check-digit IBANs from valid ones by replacing the check digit 
> pair with something different.
> However the code to do this is faulty, as it assumes check digits are in the 
> range 00-95. This is wrong, as check digits are actually in the range 02-98.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to