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)