This is an automated email from the ASF dual-hosted git repository. markt 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 d684154864 Fix BZ 69615 - clear "not found" cache if external repository is added d684154864 is described below commit d68415486455b60896af8d55c3cfd9005715ccaf Author: Mark Thomas <ma...@apache.org> AuthorDate: Wed Mar 19 20:26:18 2025 +0000 Fix BZ 69615 - clear "not found" cache if external repository is added --- java/org/apache/catalina/loader/WebappClassLoaderBase.java | 2 ++ webapps/docs/changelog.xml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/java/org/apache/catalina/loader/WebappClassLoaderBase.java b/java/org/apache/catalina/loader/WebappClassLoaderBase.java index 2d6a8663e8..65c7105024 100644 --- a/java/org/apache/catalina/loader/WebappClassLoaderBase.java +++ b/java/org/apache/catalina/loader/WebappClassLoaderBase.java @@ -2365,6 +2365,8 @@ public abstract class WebappClassLoaderBase extends URLClassLoader protected void addURL(URL url) { super.addURL(url); hasExternalRepositories = true; + // Clear the not found resources as they may now be available at the added URL. + notFoundClassResources.clear(); } diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index 4ddd23eb60..6032de95ce 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -132,6 +132,12 @@ Fix invocation of the FFM OpenSSL code for setting a SSL engine and FIPS mode. (remm) </fix> + <fix> + <bug>69615</bug>: Improve integration with the not found class resources + cache for users who are using a custom web application class loader + and/or using reflection to dynamically add external repositories to the + web application class loader. (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