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 0201309589 Fix BZ 69615 - clear "not found" cache if external repository is added 0201309589 is described below commit 020130958976b48b86cec49b42d668f9224de0b6 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 3a8216ea2a..21e019cb76 100644 --- a/java/org/apache/catalina/loader/WebappClassLoaderBase.java +++ b/java/org/apache/catalina/loader/WebappClassLoaderBase.java @@ -2573,6 +2573,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 e0953c7588..d8a2241e71 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