1
1
/*
2
- * Copyright (c) 2007, 2023 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2007, 2024 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
25
25
* @test
26
26
* @bug 4691089 4819436 4942982 5104960 6544471 6627549 7066203 7195759
27
27
* 8039317 8074350 8074351 8145952 8187946 8193552 8202026 8204269
28
- * 8208746 8209775 8264792 8274658 8283277 8296239 8321480
28
+ * 8208746 8209775 8264792 8274658 8283277 8296239 8321480 8334653
29
29
* @summary Validate ISO 4217 data for Currency class.
30
30
* @modules java.base/java.util:open
31
31
* jdk.localedata
60
60
61
61
/**
62
62
* This class tests the latest ISO 4217 data and Java's currency data which is
63
- * based on ISO 4217. The golden-data file (ISO 4217 data) 'tablea1.txt' has the following
63
+ * based on ISO 4217. The golden-data file, 'ISO4217-list-one.txt', based on the
64
+ * “List one: Currency, fund and precious metal codes” has the following
64
65
* format: <Country code>\t<Currency code>\t<Numeric code>\t<Minor unit>[\t<Cutover Date>\t<new Currency code>\t<new Numeric code>\t<new Minor unit>]
65
66
* The Cutover Date is given in SimpleDateFormat's 'yyyy-MM-dd-HH-mm-ss' format in the GMT time zone.
66
67
*/
67
68
public class ValidateISO4217 {
68
69
69
70
// Input golden-data file
70
71
private static final File dataFile = new File (System .getProperty (
71
- "test.src" , "." ), "tablea1 .txt" );
72
+ "test.src" , "." ), "ISO4217-list-one .txt" );
72
73
// Code statuses
73
74
private static final byte UNDEFINED = 0 ;
74
75
private static final byte DEFINED = 1 ;
@@ -89,7 +90,7 @@ public class ValidateISO4217 {
89
90
+ "DEM-EEK-ESP-FIM-FRF-GHC-GRD-GWP-HRK-IEP-ITL-LTL-LUF-LVL-MGF-MRO-MTL-MXV-MZM-NLG-"
90
91
+ "PTE-ROL-RUR-SDD-SIT-SLL-SKK-SRG-STD-TMM-TPE-TRL-VEF-UYI-USN-USS-VEB-VED-"
91
92
+ "XAG-XAU-XBA-XBB-XBC-XBD-XDR-XFO-XFU-XPD-XPT-XSU-XTS-XUA-XXX-"
92
- + "YUM-ZMK-ZWD-ZWN-ZWR" ;
93
+ + "YUM-ZMK-ZWD-ZWL- ZWN-ZWR" ;
93
94
private static final String [][] extraCodes = {
94
95
/* Defined in ISO 4217 list, but don't have code and minor unit info. */
95
96
{"AQ" , "" , "" , "0" }, // Antarctica
0 commit comments