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

markt-asf pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
     new 05b4e876e4 Clean-up
05b4e876e4 is described below

commit 05b4e876e4c75ff7d65705a1a870df01e6493e29
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 baaaf35ce6..95c68e7777 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