jdk/test/java/util/Base64/TestBase64Golden.java
changeset 26039 a6d9e5b030b1
parent 23010 6dadb192ad81
--- a/jdk/test/java/util/Base64/TestBase64Golden.java	Tue Aug 19 10:34:07 2014 -0700
+++ b/jdk/test/java/util/Base64/TestBase64Golden.java	Tue Aug 19 12:26:34 2014 -0700
@@ -40,9 +40,6 @@
 import java.util.Objects;
 import java.util.Random;
 
-import sun.misc.BASE64Decoder;
-import sun.misc.BASE64Encoder;
-
 public class TestBase64Golden {
 
     public static void main(String[] args) throws Exception {
@@ -138,16 +135,6 @@
             resArr = decoder.decode(encodedStr);
             assertEqual(resArr, srcArr);
 
-            // test compatible with sun.misc.Base64Encoder
-            if (type == Base64Type.MIME) {
-                sun.misc.BASE64Encoder miscEncoder = new BASE64Encoder();
-                sun.misc.BASE64Decoder miscDecoder = new BASE64Decoder();
-                resArr = decoder.decode(miscEncoder.encode(srcArr));
-                assertEqual(resArr, srcArr);
-
-                resArr = encoder.encode(miscDecoder.decodeBuffer(encodedStr));
-                assertEqual(new String(resArr, DEF_CHARSET), encodedStr);
-            }
         }
     }