This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 40cb02f87f Fix backport
40cb02f87f is described below

commit 40cb02f87ff6bd39d8dad07e342c2bdc68a51a21
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Sep 29 14:06:41 2026 +0100

    Fix backport
---
 test/org/apache/tomcat/security/TestSecurity2026WebSocket.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/org/apache/tomcat/security/TestSecurity2026WebSocket.java 
b/test/org/apache/tomcat/security/TestSecurity2026WebSocket.java
index 0c5c12b0ba..81d2272978 100644
--- a/test/org/apache/tomcat/security/TestSecurity2026WebSocket.java
+++ b/test/org/apache/tomcat/security/TestSecurity2026WebSocket.java
@@ -191,7 +191,7 @@ public class TestSecurity2026WebSocket extends 
WebSocketBaseTest {
     public static class BusyWaitEndpoint {
 
         // 8k message
-        private static final String MSG = "a".repeat(1024 * 8);
+        private static final String MSG = new String(new char[1024 * 
8]).replace("\0", "a");
 
         @OnOpen
         public void onOpen(Session session) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to