From 7606b9293a4152fef3b3408d3f3212ab4abd35d0 Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Fri, 26 Oct 2018 09:32:01 +0000 Subject: [PATCH] Remove the workaround for a bug in JDK 11 which was fixed in ea+28 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1844874 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/poi/ss/util/TestDateFormatConverter.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/testcases/org/apache/poi/ss/util/TestDateFormatConverter.java b/src/testcases/org/apache/poi/ss/util/TestDateFormatConverter.java index 0d2710425f..811a59701b 100644 --- a/src/testcases/org/apache/poi/ss/util/TestDateFormatConverter.java +++ b/src/testcases/org/apache/poi/ss/util/TestDateFormatConverter.java @@ -99,15 +99,6 @@ public final class TestDateFormatConverter { row.createCell(5).setCellValue(javaDateFormatPattern); row.createCell(6).setCellValue(excelFormatPattern); } catch (Exception e) { - // this can be removed after https://bugs.openjdk.java.net/browse/JDK-8209047 is available - // in JDK 11 ea > 26 - if(locale.toString().startsWith("my") && - e.getMessage().contains("Illegal pattern character 'B'") && - System.getProperty("java.version").startsWith("11")) { - System.out.println("DateFormat.getDateTimeInstance() fails for Malaysian Locale on JDK 11, submitted bug report to Oracle"); - continue; - } - throw new RuntimeException( "Failed for locale: " + locale + " and style " + style + "\n" + "Having locales: " + Arrays.toString(DateFormat.getAvailableLocales()), e); @@ -153,7 +144,6 @@ public final class TestDateFormatConverter { DateFormatConverter.getPrefixForLocale(new Locale("")); } - @Ignore("Fails on JDK 11, submitted as ID : 9056763") @Test public void testJDK11MyLocale() { DateFormat.getDateTimeInstance(DateFormat.DEFAULT, DateFormat.DEFAULT, Locale.forLanguageTag("my")); -- 2.39.5