]> granicus.if.org Git - icu/commitdiff
ICU-11918 Excluded ISO-2022-KR check on IBM Java 8. Java ISO-2022-KR is broken in...
authorYoshito Umaoka <y.umaoka@gmail.com>
Wed, 23 Sep 2015 18:31:46 +0000 (18:31 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Wed, 23 Sep 2015 18:31:46 +0000 (18:31 +0000)
X-SVN-Rev: 38008

icu4j/main/tests/core/src/com/ibm/icu/dev/test/charsetdet/TestCharsetDetector.java

index 606f12467be28c00c33ece01204b4134a4fc3396..d6087797df1258daaa2116b83d1eb0bbafcaa473 100644 (file)
@@ -25,6 +25,8 @@ import org.w3c.dom.Node;
 import org.w3c.dom.NodeList;
 
 import com.ibm.icu.dev.test.TestFmwk;
+import com.ibm.icu.dev.test.TestUtil;
+import com.ibm.icu.dev.test.TestUtil.JavaVendor;
 import com.ibm.icu.impl.Utility;
 import com.ibm.icu.text.CharsetDetector;
 import com.ibm.icu.text.CharsetMatch;
@@ -436,6 +438,12 @@ public class TestCharsetDetector extends TestFmwk
         if (!checkRoundtrip) {
             return;
         }
+
+        // TODO temporary workaround for IBM Java 8 ISO-2022-KR problem
+        if (encoding.equals("ISO-2022-KR") && TestUtil.getJavaVendor() == JavaVendor.IBM && TestUtil.getJavaVersion() == 8) {
+            logln("Skipping roundtrip check on IBM Java 8: " + id + ", " + encoding);
+            return;
+        }
         
         String decoded = m.getString();