commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Created] (VALIDATOR-332) IIBANCheckDigit.calculate does not enforce initial checksun value
Date Thu, 30 Jan 2014 13:42:08 GMT
Sebb created VALIDATOR-332:
------------------------------

             Summary: IIBANCheckDigit.calculate does not enforce initial checksun value
                 Key: VALIDATOR-332
                 URL: https://issues.apache.org/jira/browse/VALIDATOR-332
             Project: Commons Validator
          Issue Type: Bug
            Reporter: Sebb


The IBANCheckDigit.calculate Javadoc states that the initial check digits should be "00" but
does not enforce this.

If the check digits are not "00" initially, the calculated check digits will be incorrect,
leading to potentially unexpected behaviour.

The code should either throw a CheckDigitException or force the initial value to "00".



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

Mime
View raw message