JDK-8177797 : Locale.getISOCountries() still contains country code "AN"
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2017-03-29
  • Updated: 2017-03-30
  • Resolved: 2017-03-30
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)



ADDITIONAL OS VERSION INFORMATION :
Windows 10

A DESCRIPTION OF THE PROBLEM :
"AN" country code was deleted from ISO 3166-2 but still present in Locale.getISOCountries() list.

see https://en.wikipedia.org/wiki/ISO_3166-2:AN

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Locale.getISOCountries() should not contain "AN" code
ACTUAL -
Locale.getISOCountries() contains "AN" code

REPRODUCIBILITY :
This bug can be reproduced always.


Comments
This should be dealt as an backport of the JDK-8071929
30-03-2017

To reproduce the issue , run the attached test case. JDK 8u121 - Fail JDK 9-ea + 161- Pass The test case checks if the Locale.getISOCountries() contains "AN" : Output on JDK 8u121 - true Output on JDK 9-ea + 161 - false
30-03-2017