aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcases/org/apache/poi')
-rw-r--r--src/testcases/org/apache/poi/ss/usermodel/TestExcelStyleDateFormatter.java4
1 files 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;
}