This is an automated email from the ASF dual-hosted git repository. markt 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 43b452ebeb Regression for BZ 68721 - report correct exception 43b452ebeb is described below commit 43b452ebeb7274a749938b7461e5843c3ca2bc23 Author: Mark Thomas <ma...@apache.org> AuthorDate: Tue Jun 11 17:26:54 2024 +0100 Regression for BZ 68721 - report correct exception Some instances of LinkageError were incorrectly reported as ClassNotFoundException --- java/org/apache/catalina/loader/WebappClassLoaderBase.java | 4 ++++ webapps/docs/changelog.xml | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/java/org/apache/catalina/loader/WebappClassLoaderBase.java b/java/org/apache/catalina/loader/WebappClassLoaderBase.java index 4022bcf42a..51f6e21353 100644 --- a/java/org/apache/catalina/loader/WebappClassLoaderBase.java +++ b/java/org/apache/catalina/loader/WebappClassLoaderBase.java @@ -2315,6 +2315,10 @@ public abstract class WebappClassLoaderBase extends URLClassLoader // Re-throw the original exception throw e; } + if (clazz == null) { + // Not BZ 68721 + throw e; + } } entry.loadedClass = clazz; } diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index 3e238ff8b4..8071722be4 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -123,6 +123,11 @@ for retrieving extended/additional information from an established GSS context. (michaelo) </add> + <fix> + Correct a regression in the fix for <bug>68721</bug> that caused some + instances of <code>LinkageError</code> to be reported as + <code>ClassNotFoundException</code>. (markt) + </fix> </changelog> </subsection> <subsection name="Coyote"> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org