United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6544471 LocaleISOData.java is incomplete and not up-to-date
JDK-6544471 : LocaleISOData.java is incomplete and not up-to-date

Details
Type:
Bug
Submit Date:
2007-04-10
Status:
Closed
Updated Date:
2011-03-08
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
core-libs
OS:
linux,windows_xp
Sub-Component:
java.util:i18n
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Backport:
Duplicate:

Sub Tasks

Description
FULL PRODUCT VERSION :
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)


ADDITIONAL OS VERSION INFORMATION :
Linux astralis 2.6.18.6-jen44-default #1 SMP Tue Jan 2 14:34:27 UTC 2007 i686 i686 i386 GNU/Linux


A DESCRIPTION OF THE PROBLEM :
The list of two character country codes is not up-to-date. At least the following countries are missing:

GG - GUERNSEY
IM - ISLE OF MAN
JE - JERSEY


REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
CountryCode.isValid ("GG");
CountryCode.isValid ("IM");
CountryCode.isValid ("JE");

should return <code>true</code> in each case.



---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
Use the official list at http://www.iso.org/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1-semic.txt

                                    

Comments
EVALUATION

ISO 3166 codes should be up-to-date.
                                     
2007-04-10
EVALUATION

Looks like the following ISO 3166 update is missing in the country code data in the Locale class:

http://www.iso.org/iso/en/prods-services/iso3166ma/03updates-on-iso-3166/nlv11-div.html
                                     
2007-04-12
SUGGESTED FIX

http://javaweb.sfbay/jcg/7/i18n/6544471/
                                     
2007-04-12



Hardware and Software, Engineered to Work Together