Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-332

IIBANCheckDigit.calculate does not enforce initial checksum value

    XMLWordPrintableJSON

Details

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: