[
https://issues.apache.org/jira/browse/VALIDATOR-416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sebb resolved VALIDATOR-416.
----------------------------
Fix Version/s: 1.7
Resolution: Fixed
> CreditCardValidator default ctor disagrees with Javadoc
> -------------------------------------------------------
>
> Key: VALIDATOR-416
> URL: https://issues.apache.org/jira/browse/VALIDATOR-416
> Project: Commons Validator
> Issue Type: Bug
> Affects Versions: 1.5.1
> Reporter: Sebb
> Priority: Major
> Fix For: 1.7
>
>
> The CreditCardValidator class Javadoc says:
> "By default, all supported card types are allowed."
> However the default constructor says it supports:
> AMEX, VISA, MASTERCARD and DISCOVER
> which agrees with the code.
> It looks as though the default constructor was not updated when new
> validators were added.
> I think it would make more sense to include all the provided validators in
> the default, but this could be considered a change of behaviour.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)