-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
8
-
generic
-
generic
ADDITIONAL SYSTEM INFORMATION :
Ubuntu 18.04 x86_64
A DESCRIPTION OF THE PROBLEM :
When calling the function `Locale getDisplayCountry(Locale inLoc)`, HotSpot (JDK8) cannot output correct data according to the argument `inLoc`.
In the following test case, the language environment is `Finnish`, but HotSpot (on JDK8) incorrectly outputs `Finland` in `English` environment. The expected result should be `Suomi`, as shown in HotSpot (on JDK11).
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Suomi
ACTUAL -
Finland
---------- BEGIN SOURCE ----------
public class Test {
public static void main(String[] args) throws Exception {
Locale fiLocale1 = new Locale("fi", "FI");
System.out.println(fiLocale1.getDisplayCountry(fiLocale1));
}
}
---------- END SOURCE ----------
FREQUENCY : always
Ubuntu 18.04 x86_64
A DESCRIPTION OF THE PROBLEM :
When calling the function `Locale getDisplayCountry(Locale inLoc)`, HotSpot (JDK8) cannot output correct data according to the argument `inLoc`.
In the following test case, the language environment is `Finnish`, but HotSpot (on JDK8) incorrectly outputs `Finland` in `English` environment. The expected result should be `Suomi`, as shown in HotSpot (on JDK11).
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Suomi
ACTUAL -
Finland
---------- BEGIN SOURCE ----------
public class Test {
public static void main(String[] args) throws Exception {
Locale fiLocale1 = new Locale("fi", "FI");
System.out.println(fiLocale1.getDisplayCountry(fiLocale1));
}
}
---------- END SOURCE ----------
FREQUENCY : always