This is an automated email from the ASF dual-hosted git repository. rmaucher pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit cf28e6c64b5e370ef65dcd0321f22442ab5bb26a Author: remm <[email protected]> AuthorDate: Mon Oct 12 15:40:30 2026 +0200 API compatibility fixes --- .../org/apache/catalina/valves/TestExtendedAccessLogValveElements.java | 3 ++- test/org/apache/catalina/valves/TestRemoteIpValve.java | 2 +- test/org/apache/catalina/valves/TestSemaphoreValve.java | 2 -- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/test/org/apache/catalina/valves/TestExtendedAccessLogValveElements.java b/test/org/apache/catalina/valves/TestExtendedAccessLogValveElements.java index 355c69fa04..041623596c 100644 --- a/test/org/apache/catalina/valves/TestExtendedAccessLogValveElements.java +++ b/test/org/apache/catalina/valves/TestExtendedAccessLogValveElements.java @@ -34,7 +34,8 @@ public class TestExtendedAccessLogValveElements { public void testServletContextElementWithoutMappedContext() { ExtendedAccessLogValve.ServletContextElement element = new ExtendedAccessLogValve.ServletContextElement( "attributeName"); - Request request = new Request(null, new org.apache.coyote.Request()); + Request request = new Request(null); + request.setCoyoteRequest(new org.apache.coyote.Request()); Assert.assertNull(request.getContext()); CharArrayWriter buf = new CharArrayWriter(); diff --git a/test/org/apache/catalina/valves/TestRemoteIpValve.java b/test/org/apache/catalina/valves/TestRemoteIpValve.java index 35f9d9d235..df349e8dfe 100644 --- a/test/org/apache/catalina/valves/TestRemoteIpValve.java +++ b/test/org/apache/catalina/valves/TestRemoteIpValve.java @@ -166,7 +166,7 @@ public class TestRemoteIpValve { RemoteAddrAndHostTrackerValve remoteAddrAndHostTrackerValve = new RemoteAddrAndHostTrackerValve(); remoteIpValve.setNext(remoteAddrAndHostTrackerValve); - Request request = new MockRequest(new org.apache.coyote.Request()); + Request request = new MockRequest(); request.setRemoteAddr("192.168.0.10"); request.setRemoteHost("remote-host-original-value"); request.getCoyoteRequest().getMimeHeaders().addValue("x-forwarded-for").setString(" "); diff --git a/test/org/apache/catalina/valves/TestSemaphoreValve.java b/test/org/apache/catalina/valves/TestSemaphoreValve.java index d37a87de20..1a5fd2a8e1 100644 --- a/test/org/apache/catalina/valves/TestSemaphoreValve.java +++ b/test/org/apache/catalina/valves/TestSemaphoreValve.java @@ -535,7 +535,6 @@ public class TestSemaphoreValve extends TomcatBaseTest { private static final class StartAsyncServlet extends HttpServlet { - @Serial private static final long serialVersionUID = 1L; private final CountDownLatch asyncStarted; private final AtomicReference<AsyncContext> asyncContextRef; @@ -559,7 +558,6 @@ public class TestSemaphoreValve extends TomcatBaseTest { private static final class DispatchServlet extends HttpServlet { - @Serial private static final long serialVersionUID = 1L; @Override --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
