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

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


The following commit(s) were added to refs/heads/11.0.x by this push:
     new 58800bbc13 Fix back-port
58800bbc13 is described below

commit 58800bbc13117fd76986e39281004256441e7fef
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Nov 2 16:17:52 2026 +0000

    Fix back-port
---
 test/org/apache/coyote/http2/TestHttp2UpgradeHandler.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/org/apache/coyote/http2/TestHttp2UpgradeHandler.java 
b/test/org/apache/coyote/http2/TestHttp2UpgradeHandler.java
index 61c6b8242d..f38053fa90 100644
--- a/test/org/apache/coyote/http2/TestHttp2UpgradeHandler.java
+++ b/test/org/apache/coyote/http2/TestHttp2UpgradeHandler.java
@@ -230,7 +230,7 @@ public class TestHttp2UpgradeHandler extends Http2TestBase {
 
         Assert.assertTrue(test.buffers.maxWorkspaceSize > 2 * frameSize);
         Assert.assertEquals(tableSize, test.buffers.maxWorkspaceSize);
-        ByteBuffer indexedPayload = test.buffers.payloads.getLast();
+        ByteBuffer indexedPayload = 
test.buffers.payloads.get(test.buffers.payloads.size() - 1);
         Assert.assertEquals(1, indexedPayload.remaining());
         Assert.assertEquals(0x80 | (Hpack.STATIC_TABLE_LENGTH + 1), 
indexedPayload.get() & 0xFF);
     }


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

Reply via email to