commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (VALIDATOR-332) IIBANCheckDigit.calculate does not enforce initial checksum value
Date Sun, 04 Jan 2015 02:51:34 GMT

     [ https://issues.apache.org/jira/browse/VALIDATOR-332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sebb updated VALIDATOR-332:
---------------------------
    Summary: IIBANCheckDigit.calculate does not enforce initial checksum value  (was: IIBANCheckDigit.calculate
does not enforce initial checksun value)

> IIBANCheckDigit.calculate does not enforce initial checksum 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.3.4#6332)

Mime
View raw message