This is an automated email from the ASF dual-hosted git repository.
remm 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 c1fc8ce3a5 Avoid needless exception wrapping
c1fc8ce3a5 is described below
commit c1fc8ce3a50ef7e88a635e11377757a80254c452
Author: remm <[email protected]>
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 9c203afd44..efb21b43d6 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -279,6 +279,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: [email protected]
For additional commands, e-mail: [email protected]