aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2018-12-10 15:45:47 +0000
committerPJ Fanning <fanningpj@apache.org>2018-12-10 15:45:47 +0000
commitcce4189e598a0dc8030b43b4b1226b5331d91322 (patch)
tree5eaf0ce071f0fab5e910e68135e63400b21c86cf /src
parent28085415f584597166a9fff1f61fbb2fd1564807 (diff)
downloadpoi-cce4189e598a0dc8030b43b4b1226b5331d91322.tar.gz
poi-cce4189e598a0dc8030b43b4b1226b5331d91322.zip
[bug-62996]try suggested test change
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1848591 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-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;
}