You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2022/04/04 18:04:01 UTC

[GitHub] [commons-io] michael-o commented on a diff in pull request #343: IO-764 Fix big string writing by writing with ByteBuffer instead calling getBytes directly

michael-o commented on code in PR #343:
URL: https://github.com/apache/commons-io/pull/343#discussion_r842008401


##########
src/test/java/org/apache/commons/io/IOUtilsTest.java:
##########
@@ -1643,5 +1644,19 @@ public void testToString_URL_CharsetName() throws Exception {
     public void testToString_URL_CharsetNameNull() throws Exception {
         testToString_URL(null);
     }
+    
+    @Test
+    public void testBigString() throws IOException {
+       String foo = StringUtils.repeat("\uD83D", (Integer.MAX_VALUE)/2-1);

Review Comment:
   No shared CI will provide you these resources.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org