6627549: ISO 3166 code addition: Saint Barthelemy and Saint Martin
authornaoto
Wed, 21 Jan 2009 13:58:46 -0800
changeset 1848 6ecbe9158c6e
parent 1847 ead8e9499c20
child 1849 b7b930157ae5
6627549: ISO 3166 code addition: Saint Barthelemy and Saint Martin 6786276: Locale.getISOCountries() still contains country code "CS" Reviewed-by: okutsu
jdk/src/share/classes/java/util/CurrencyData.properties
jdk/src/share/classes/java/util/LocaleISOData.java
jdk/src/share/classes/sun/util/resources/LocaleNames.properties
jdk/test/java/util/Currency/ValidateISO4217.java
jdk/test/java/util/Locale/LocaleTest.java
jdk/test/sun/text/resources/LocaleData
--- a/jdk/src/share/classes/java/util/CurrencyData.properties	Wed Jan 21 21:30:59 2009 +0300
+++ b/jdk/src/share/classes/java/util/CurrencyData.properties	Wed Jan 21 13:58:46 2009 -0800
@@ -441,12 +441,16 @@
 RU=RUB
 # RWANDA
 RW=RWF
+# SAINT BARTHELEMY
+BL=EUR
 # SAINT HELENA
 SH=SHP
 # SAINT KITTS AND NEVIS
 KN=XCD
 # SAINT LUCIA
 LC=XCD
+# SAINT MARTIN
+MF=EUR
 # SAINT PIERRE AND MIQUELON
 PM=EUR
 # SAINT VINCENT AND THE GRENADINES
--- a/jdk/src/share/classes/java/util/LocaleISOData.java	Wed Jan 21 21:30:59 2009 +0300
+++ b/jdk/src/share/classes/java/util/LocaleISOData.java	Wed Jan 21 13:58:46 2009 -0800
@@ -250,6 +250,7 @@
         + "BH" + "BHR"  // Bahrain, Kingdom of
         + "BI" + "BDI"  // Burundi, Republic of
         + "BJ" + "BEN"  // Benin, People's Republic of
+        + "BL" + "BLM"  // Saint Barth\u00e9lemy
         + "BM" + "BMU"  // Bermuda
         + "BN" + "BRN"  // Brunei Darussalam
         + "BO" + "BOL"  // Bolivia, Republic of
@@ -273,7 +274,7 @@
         + "CN" + "CHN"  // China, People's Republic of
         + "CO" + "COL"  // Colombia, Republic of
         + "CR" + "CRI"  // Costa Rica, Republic of
-        + "CS" + "SCG"  // Serbia and Montenegro
+//      + "CS" + "SCG"  // Serbia and Montenegro
         + "CU" + "CUB"  // Cuba, Republic of
         + "CV" + "CPV"  // Cape Verde, Republic of
         + "CX" + "CXR"  // Christmas Island
@@ -363,6 +364,7 @@
         + "MC" + "MCO"  // Monaco, Principality of
         + "MD" + "MDA"  // Moldova, Republic of
         + "ME" + "MNE"  // Montenegro, Republic of
+        + "MF" + "MAF"  // Saint Martin
         + "MG" + "MDG"  // Madagascar, Republic of
         + "MH" + "MHL"  // Marshall Islands
         + "MK" + "MKD"  // Macedonia, the former Yugoslav Republic of
--- a/jdk/src/share/classes/sun/util/resources/LocaleNames.properties	Wed Jan 21 21:30:59 2009 +0300
+++ b/jdk/src/share/classes/sun/util/resources/LocaleNames.properties	Wed Jan 21 13:58:46 2009 -0800
@@ -257,6 +257,7 @@
 BH=Bahrain
 BI=Burundi
 BJ=Benin
+BL=Saint Barth\u00e9lemy
 BM=Bermuda
 BN=Brunei
 BO=Bolivia
@@ -370,6 +371,7 @@
 MC=Monaco
 MD=Moldova
 ME=Montenegro
+MF=Saint Martin
 MG=Madagascar
 MH=Marshall Islands
 MK=Macedonia
--- a/jdk/test/java/util/Currency/ValidateISO4217.java	Wed Jan 21 21:30:59 2009 +0300
+++ b/jdk/test/java/util/Currency/ValidateISO4217.java	Wed Jan 21 13:58:46 2009 -0800
@@ -22,7 +22,7 @@
  */
 /*
  * @test
- * @bug 4691089 4819436 4942982 5104960 6544471
+ * @bug 4691089 4819436 4942982 5104960 6544471 6627549
  * @summary Validate ISO 4217 data for Currency class.
  */
 
@@ -86,6 +86,8 @@
         {"JE", "GBP", "826", "2"},      // Jersey
         {"GG", "GBP", "826", "2"},      // Guernsey
         {"IM", "GBP", "826", "2"},      // Isle of Man
+        {"BL", "EUR", "978", "2"},      // Saint Barthelemy
+        {"MF", "EUR", "978", "2"},      // Saint Martin
     };
 
     /* Codes that are obsolete, do not have related country */
--- a/jdk/test/java/util/Locale/LocaleTest.java	Wed Jan 21 21:30:59 2009 +0300
+++ b/jdk/test/java/util/Locale/LocaleTest.java	Wed Jan 21 13:58:46 2009 -0800
@@ -24,7 +24,7 @@
  * @test
  * @bug 4052404 4052440 4084688 4092475 4101316 4105828 4107014 4107953 4110613
  * 4118587 4118595 4122371 4126371 4126880 4135316 4135752 4139504 4139940 4143951
- * 4147315 4147317 4147552 4335196 4778440 5010672 6475525 6544471
+ * 4147315 4147317 4147552 4335196 4778440 5010672 6475525 6544471 6627549 6786276
  * @summary test Locales
  */
 /*
@@ -439,8 +439,8 @@
         String[] spotCheck2 = { "US", "CA", "GB", "FR", "DE", "IT", "JP", "KR", "CN", "TW", "TH" };
 
 
-        if (test.length != 245)
-            errln("Expected getISOCountries to return 245 countries; it returned " + test.length);
+        if (test.length != 246)
+            errln("Expected getISOCountries to return 246 countries; it returned " + test.length);
         else {
             for (int i = 0; i < spotCheck2.length; i++) {
                 int j;
--- a/jdk/test/sun/text/resources/LocaleData	Wed Jan 21 21:30:59 2009 +0300
+++ b/jdk/test/sun/text/resources/LocaleData	Wed Jan 21 13:58:46 2009 -0800
@@ -5518,3 +5518,11 @@
 FormatData/sv/AmPmMarkers/0=fm
 FormatData/sv/AmPmMarkers/1=em
 
+# JE, GG, IM (6544471)
+LocaleNames//JE=Jersey
+LocaleNames//GG=Guernsey
+LocaleNames//IM=Isle Of Man
+
+# BL, MF (6627549)
+LocaleNames//BL=Saint Barth\u00e9lemy
+LocaleNames//MF=Saint Martin