You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2026/10/19 20:26:54 UTC
(tomcat) branch 11.0.x updated: Clean-up
This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new 1036d10c8a Clean-up
1036d10c8a is described below
commit 1036d10c8ac8338e33ea11fd4281c2825759ac57
Author: Mark Thomas <ma...@apache.org>
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org