RFR: 8353713: Improve Currency.getInstance exception handling
Justin Lu
jlu at openjdk.org
Fri Apr 4 21:29:18 UTC 2025
Please review this PR which improves some Currency `IllegalArgumentException`s by including the input in the message. This could be a currency code, country code, or locale. This change also includes tests to check the messages for an invalid country via the region override as well as an invalid country code within a 3 length currency code.
-------------
Commit messages:
- init
Changes: https://git.openjdk.org/jdk/pull/24459/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24459&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8353713
Stats: 38 lines in 2 files changed: 13 ins; 0 del; 25 mod
Patch: https://git.openjdk.org/jdk/pull/24459.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/24459/head:pull/24459
PR: https://git.openjdk.org/jdk/pull/24459
More information about the core-libs-dev
mailing list