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

remm pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/8.5.x by this push:
     new 313341e230 Fix build
313341e230 is described below

commit 313341e2308aaf3ec9637c9663a57a377bd18349
Author: remm <r...@apache.org>
AuthorDate: Tue Sep 19 14:34:17 2023 +0200

    Fix build
---
 java/org/apache/tomcat/util/net/AbstractEndpoint.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/java/org/apache/tomcat/util/net/AbstractEndpoint.java 
b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
index 680626c265..4a17b4a95c 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -276,10 +276,9 @@ public abstract class AbstractEndpoint<S,U> {
                 isSSLEnabled()) {
             try {
                 createSSLContext(sslHostConfig);
+            } catch (IllegalArgumentException e) {
+                throw e;
             } catch (Exception e) {
-                if (e instanceof IllegalArgumentException) {
-                    throw e;
-                }
                 throw new IllegalArgumentException(e);
             }
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to