test/java/lang/StringCoding/Enormous.java

Print this page

        

@@ -32,8 +32,8 @@
         new String(new char[16777217]).getBytes("ASCII");
         byte[] bytes = new byte[16777217];
         new String(bytes,"ASCII");
 
         // Another manifestation of this bug, reported in bug 6192102.
-        new sun.misc.BASE64Encoder().encode(bytes);
+        java.util.Base64.getEncoder().encodeToString(bytes);
     }
 }