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:22 UTC
(tomcat) branch main updated: Clean-up
This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 8d8369c7e3 Clean-up
8d8369c7e3 is described below
commit 8d8369c7e320be9bef97f28c4009803a9091a543
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