test/java/lang/StringCoding/Enormous.java

Print this page

        

*** 32,39 **** 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); } } --- 32,39 ---- 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. ! java.util.Base64.getEncoder().encodeToString(bytes); } }