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 b37a144690 Avoid needless exception wrapping
b37a144690 is described below

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

    Avoid needless exception wrapping
---
 java/org/apache/tomcat/util/net/AbstractEndpoint.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/java/org/apache/tomcat/util/net/AbstractEndpoint.java 
b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
index 61961a39c2..680626c265 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -277,6 +277,9 @@ public abstract class AbstractEndpoint<S,U> {
             try {
                 createSSLContext(sslHostConfig);
             } 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