You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2014/01/30 14:42:08 UTC
[jira] [Created] (VALIDATOR-332) IIBANCheckDigit.calculate does not
enforce initial checksun value
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)