This is an automated email from the ASF dual-hosted git repository.
markt 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 ab21246504 Address some test failures reported by rjung
ab21246504 is described below
commit ab21246504cfaf5186cafaccf73dc030c84efd75
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Feb 2 17:05:47 2026 +0000
Address some test failures reported by rjung
---
test/org/apache/tomcat/util/net/ocsp/TestOcspSoftFail.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/test/org/apache/tomcat/util/net/ocsp/TestOcspSoftFail.java
b/test/org/apache/tomcat/util/net/ocsp/TestOcspSoftFail.java
index 0cd783ab44..f602bd7a17 100644
--- a/test/org/apache/tomcat/util/net/ocsp/TestOcspSoftFail.java
+++ b/test/org/apache/tomcat/util/net/ocsp/TestOcspSoftFail.java
@@ -18,6 +18,7 @@ package org.apache.tomcat.util.net.ocsp;
import java.net.SocketException;
+import javax.net.ssl.SSLException;
import javax.net.ssl.SSLHandshakeException;
import org.junit.Test;
@@ -47,9 +48,10 @@ public class TestOcspSoftFail extends OcspBaseTest {
public void testNoResponderWithoutSoftFail() throws Exception {
try {
doTest(false, false, ClientCertificateVerification.ENABLED, false,
Boolean.FALSE);
- } catch (SocketException se) {
+ } catch (SocketException | SSLException e) {
// APR or NIO2 may throw a SocketException rather than a
SSLHandshakeException
- throw new SSLHandshakeException(se.getMessage());
+ // Older Java versions may throw an SSLException rather than a
SSLHandshakeException
+ throw new SSLHandshakeException(e.getMessage());
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]