JDK-6544471 : LocaleISOData.java is incomplete and not up-to-date
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: linux,windows_xp
  • CPU: x86
  • Submitted: 2007-04-10
  • Updated: 2011-03-08
  • Resolved: 2011-03-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7
6u14Fixed 7 b14Fixed
Related Reports
Duplicate :  
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
SUGGESTED FIX http://javaweb.sfbay/jcg/7/i18n/6544471/
12-04-2007

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
12-04-2007

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