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

markt-asf 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 42c7b40ade Clean-up
42c7b40ade is described below

commit 42c7b40ade78613c55bddc4d583c8de2e7eaa663
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Oct 19 21:26:10 2026 +0100

    Clean-up
---
 java/org/apache/catalina/startup/WebappServiceLoader.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/java/org/apache/catalina/startup/WebappServiceLoader.java 
b/java/org/apache/catalina/startup/WebappServiceLoader.java
index 9f78b12539..abb266de23 100644
--- a/java/org/apache/catalina/startup/WebappServiceLoader.java
+++ b/java/org/apache/catalina/startup/WebappServiceLoader.java
@@ -230,9 +230,7 @@ public class WebappServiceLoader<T> {
             try {
                 Class<?> clazz = Class.forName(serviceClass, true, loader);
                 
services.add(serviceType.cast(clazz.getConstructor().newInstance()));
-            } catch (ReflectiveOperationException | ClassCastException e) {
-                throw new IOException(e);
-            } catch (LinkageError e) {
+            } catch (ReflectiveOperationException | ClassCastException | 
LinkageError e) {
                 // Loading with initialization enabled can fail with an Error, 
for example a missing
                 // transitive dependency or a failing static initializer. 
Report those via the
                 // documented IOException contract rather than letting the 
Error escape.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to