diff --git a/src/testcases/org/apache/poi/ss/usermodel/TestExcelStyleDateFormatter.java b/src/testcases/org/apache/poi/ss/usermodel/TestExcelStyleDateFormatter.java index b7fd43e367..742fb2228f 100644 --- a/src/testcases/org/apache/poi/ss/usermodel/TestExcelStyleDateFormatter.java +++ b/src/testcases/org/apache/poi/ss/usermodel/TestExcelStyleDateFormatter.java @@ -91,9 +91,9 @@ public class TestExcelStyleDateFormatter { */ private int localeIndex(Locale locale) { final String provider = System.getProperty("java.locale.providers"); - return jreVersion < 12 || + return jreVersion < 9 || !locale.equals (Locale.CHINESE) || - (provider != null && provider.startsWith("JRE")) + (provider != null && (provider.startsWith("JRE") || provider.startsWith("COMPAT"))) ? 0 : 1; }