Skip to content

[VALIDATOR-510] Preserve unrelated IBAN country aliases - #442

Open
AryanRG wants to merge 1 commit into
apache:masterfrom
AryanRG:VALIDATOR-510-preserve-iban-aliases
Open

AryanRG wants to merge 1 commit into
apache:masterfrom
AryanRG:VALIDATOR-510-preserve-iban-aliases

Conversation

@AryanRG

@AryanRG AryanRG commented Oct 17, 2026

Copy link
Copy Markdown

Summary

IBANValidator.setValidator could remove unrelated country-code aliases when a secondary code was changed or removed. Only remove an alias if it still refers to the validator being replaced, preserving sibling aliases and direct registrations.

Adds regressions for alias replacement and removal, plus a VALIDATOR-510 changes entry.

Jira: https://issues.apache.org/jira/browse/VALIDATOR-510

Validation

  • mvn — success on the final patch.
  • Focused IBANValidatorTest — 435 passing cases.

AI assistance used (Kiro) for code and test drafting and independent patch review.

Only remove aliases that still refer to the validator being replaced or removed. Updating a secondary country code must not erase sibling aliases or a validator now assigned directly to that country code. Add regressions and a Jira-linked changes entry.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant