From cce4189e598a0dc8030b43b4b1226b5331d91322 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Mon, 10 Dec 2018 15:45:47 +0000 Subject: [PATCH] [bug-62996]try suggested test change git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1848591 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/poi/ss/usermodel/TestExcelStyleDateFormatter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5