Skip to content

Commit e9c8a89

Browse files
Nibedita JenaRavi Reddy
authored andcommitted
8356096: ISO 4217 Amendment 179 Update
Backport-of: d4adbca67d0fd7c50790d26d5e8ec8f337b45e5e
1 parent e8550a2 commit e9c8a89

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

src/java.base/share/classes/sun/util/resources/CurrencyNames.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2005, 2024, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2005, 2025, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -261,6 +261,7 @@ VES=VES
261261
VND=VND
262262
VUV=VUV
263263
WST=WST
264+
XAD=XAD
264265
XAF=XAF
265266
XAG=XAG
266267
XAU=XAU
@@ -488,6 +489,7 @@ ves=Venezuelan Bolívar Soberano
488489
vnd=Vietnamese Dong
489490
vuv=Vanuatu Vatu
490491
wst=Samoan Tala
492+
xad=Arab Accounting Dinar
491493
xaf=CFA Franc BEAC
492494
xag=Silver
493495
xau=Gold

src/java.base/share/data/currency/CurrencyData.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2000, 2024, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2000, 2025, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -32,7 +32,7 @@ formatVersion=3
3232
# Version of the currency code information in this class.
3333
# It is a serial number that accompanies with each amendment.
3434

35-
dataVersion=177
35+
dataVersion=179
3636

3737
# List of all valid ISO 4217 currency codes.
3838
# To ensure compatibility, do not remove codes.
@@ -54,7 +54,7 @@ all=ADP020-AED784-AFA004-AFN971-ALL008-AMD051-ANG532-AOA973-ARS032-ATS040-AUD036
5454
SBD090-SCR690-SDD736-SDG938-SEK752-SGD702-SHP654-SIT705-SKK703-SLE925-SLL694-SOS706-\
5555
SRD968-SRG740-SSP728-STD678-STN930-SVC222-SYP760-SZL748-THB764-TJS972-TMM795-TMT934-TND788-TOP776-\
5656
TPE626-TRL792-TRY949-TTD780-TWD901-TZS834-UAH980-UGX800-USD840-USN997-USS998-UYI940-\
57-
UYU858-UZS860-VEB862-VED926-VEF937-VES928-VND704-VUV548-WST882-XAF950-XAG961-XAU959-XBA955-\
57+
UYU858-UZS860-VEB862-VED926-VEF937-VES928-VND704-VUV548-WST882-XAD396-XAF950-XAG961-XAU959-XBA955-\
5858
XBB956-XBC957-XBD958-XCD951-XCG532-XDR960-XFO000-XFU000-XOF952-XPD964-XPF953-\
5959
XPT962-XSU994-XTS963-XUA965-XXX999-YER886-YUM891-ZAR710-ZMK894-ZMW967-ZWD716-ZWG924-\
6060
ZWL932-ZWN942-ZWR935

test/jdk/java/util/Currency/ISO4217-list-one.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#
22
#
3-
# Amendments up until ISO 4217 AMENDMENT NUMBER 177
4-
# (As of 20 June 2024)
3+
# Amendments up until ISO 4217 AMENDMENT NUMBER 179
4+
# (As of 02 May 2025)
55
#
66

77
# Version
88
FILEVERSION=3
9-
DATAVERSION=177
9+
DATAVERSION=179
1010

1111
# ISO 4217 currency data
1212
AF AFN 971 2

test/jdk/java/util/Currency/ValidateISO4217.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
* @bug 4691089 4819436 4942982 5104960 6544471 6627549 7066203 7195759
2727
* 8039317 8074350 8074351 8145952 8187946 8193552 8202026 8204269
2828
* 8208746 8209775 8264792 8274658 8283277 8296239 8321480 8334653
29+
* 8356096
2930
* @summary Validate ISO 4217 data for Currency class.
3031
* @modules java.base/java.util:open
3132
* jdk.localedata
@@ -89,7 +90,7 @@ public class ValidateISO4217 {
8990
"ADP-AFA-ATS-AYM-AZM-BEF-BGL-BOV-BYB-BYR-CHE-CHW-CLF-COU-CUC-CYP-"
9091
+ "DEM-EEK-ESP-FIM-FRF-GHC-GRD-GWP-HRK-IEP-ITL-LTL-LUF-LVL-MGF-MRO-MTL-MXV-MZM-NLG-"
9192
+ "PTE-ROL-RUR-SDD-SIT-SLL-SKK-SRG-STD-TMM-TPE-TRL-VEF-UYI-USN-USS-VEB-VED-"
92-
+ "XAG-XAU-XBA-XBB-XBC-XBD-XDR-XFO-XFU-XPD-XPT-XSU-XTS-XUA-XXX-"
93+
+ "XAD-XAG-XAU-XBA-XBB-XBC-XBD-XDR-XFO-XFU-XPD-XPT-XSU-XTS-XUA-XXX-"
9394
+ "YUM-ZMK-ZWD-ZWL-ZWN-ZWR";
9495
private static final String[][] extraCodes = {
9596
/* Defined in ISO 4217 list, but don't have code and minor unit info. */

0 commit comments

Comments
 (0)