This is an automated email from the ASF dual-hosted git repository. markt 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 b761e225f5 Regression for BZ 68721 - report correct exception b761e225f5 is described below commit b761e225f51733ed06a8b087f5798e91f0d47714 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 2cc22958bf..553cd7a64e 100644 --- a/java/org/apache/catalina/loader/WebappClassLoaderBase.java +++ b/java/org/apache/catalina/loader/WebappClassLoaderBase.java @@ -2300,6 +2300,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 611c596507..bb20f254ea 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -135,6 +135,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