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 f06f42a986 Fix BZ 69615 - clear "not found" cache if external repository is added f06f42a986 is described below commit f06f42a986563c35dbe443157286832791c95dcd 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 0c138e8a3e..7754d203be 100644 --- a/java/org/apache/catalina/loader/WebappClassLoaderBase.java +++ b/java/org/apache/catalina/loader/WebappClassLoaderBase.java @@ -2544,6 +2544,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 858f0ae2f2..46f6be7768 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -126,6 +126,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