Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
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".