-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
17, 21
-
None
-
generic
-
generic
With this patch:
diff --git a/test/jdk/java/text/Format/NumberFormat/IntlTestDecimalFormatSymbols.java b/test/jdk/java/text/Format/NumberFormat/IntlTestDecimalFormatSymbols.java
index 30905ee46f1..8cfb2316df6 100644
--- a/test/jdk/java/text/Format/NumberFormat/IntlTestDecimalFormatSymbols.java
+++ b/test/jdk/java/text/Format/NumberFormat/IntlTestDecimalFormatSymbols.java
@@ -52,6 +52,7 @@ public class IntlTestDecimalFormatSymbols extends IntlTest
public void TestSymbols()
{
DecimalFormatSymbols fr = new DecimalFormatSymbols(Locale.FRENCH);
+ DecimalFormatSymbols hr = new DecimalFormatSymbols(new Locale("hr"));
DecimalFormatSymbols en = new DecimalFormatSymbols(Locale.ENGLISH);
@@ -59,6 +60,10 @@ public class IntlTestDecimalFormatSymbols extends IntlTest
errln("ERROR: English DecimalFormatSymbols equal to French");
}
+ if(en.getMinusSign() != hr.getMinusSign()) {
+ errln("ERROR: English minus sign not equal to Croatian minus sign. Got: " + hr.getMinusSign() + " expected: " + en.getMinusSign());
+ }
+
// just do some VERY basic tests to make sure that get/set work
if (!fr.getLocale().equals(Locale.FRENCH)) {
The test fails with:
FAILED: java/text/Format/NumberFormat/IntlTestDecimalFormatSymbols.java
Reason being:
IntlTestDecimalFormatSymbols {
TestSymbols {
ERROR: English minus sign not equal to Croatian minus sign. Got: \u2212 expected: -
Uncaught exception thrown in test method TestSymbols
The test passes with JDK 11.0.18. So this seems a regression in JDK 17+
This issue was originally discovered here:
https://github.com/adoptium/adoptium-support/issues/709
diff --git a/test/jdk/java/text/Format/NumberFormat/IntlTestDecimalFormatSymbols.java b/test/jdk/java/text/Format/NumberFormat/IntlTestDecimalFormatSymbols.java
index 30905ee46f1..8cfb2316df6 100644
--- a/test/jdk/java/text/Format/NumberFormat/IntlTestDecimalFormatSymbols.java
+++ b/test/jdk/java/text/Format/NumberFormat/IntlTestDecimalFormatSymbols.java
@@ -52,6 +52,7 @@ public class IntlTestDecimalFormatSymbols extends IntlTest
public void TestSymbols()
{
DecimalFormatSymbols fr = new DecimalFormatSymbols(Locale.FRENCH);
+ DecimalFormatSymbols hr = new DecimalFormatSymbols(new Locale("hr"));
DecimalFormatSymbols en = new DecimalFormatSymbols(Locale.ENGLISH);
@@ -59,6 +60,10 @@ public class IntlTestDecimalFormatSymbols extends IntlTest
errln("ERROR: English DecimalFormatSymbols equal to French");
}
+ if(en.getMinusSign() != hr.getMinusSign()) {
+ errln("ERROR: English minus sign not equal to Croatian minus sign. Got: " + hr.getMinusSign() + " expected: " + en.getMinusSign());
+ }
+
// just do some VERY basic tests to make sure that get/set work
if (!fr.getLocale().equals(Locale.FRENCH)) {
The test fails with:
FAILED: java/text/Format/NumberFormat/IntlTestDecimalFormatSymbols.java
Reason being:
IntlTestDecimalFormatSymbols {
TestSymbols {
ERROR: English minus sign not equal to Croatian minus sign. Got: \u2212 expected: -
Uncaught exception thrown in test method TestSymbols
The test passes with JDK 11.0.18. So this seems a regression in JDK 17+
This issue was originally discovered here:
https://github.com/adoptium/adoptium-support/issues/709