From: PJ Fanning Date: Mon, 10 Dec 2018 15:45:47 +0000 (+0000) Subject: [bug-62996]try suggested test change X-Git-Tag: REL_4_1_0~199 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cce4189e598a0dc8030b43b4b1226b5331d91322;p=poi.git [bug-62996]try suggested test change git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1848591 13f79535-47bb-0310-9956-ffa450edef68 --- 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; }