]> source.dussan.org Git - poi.git/commitdiff
Remove the workaround for a bug in JDK 11 which was fixed in ea+28
authorDominik Stadler <centic@apache.org>
Fri, 26 Oct 2018 09:32:01 +0000 (09:32 +0000)
committerDominik Stadler <centic@apache.org>
Fri, 26 Oct 2018 09:32:01 +0000 (09:32 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1844874 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/ss/util/TestDateFormatConverter.java

index 0d2710425f89b6c23c6ce0db0234427d8ec3cadd..811a59701bd17b53fa9095e08a9e613945acc1d1 100644 (file)
@@ -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"));