This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 2bc4d43c95 Fix BZ 69615 - clear "not found" cache if external
repository is added
2bc4d43c95 is described below
commit 2bc4d43c9510da7e3da5d509517ad8bcd66739bd
Author: Mark Thomas <[email protected]>
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 f861d3ddf4..f93443f30c 100644
--- a/java/org/apache/catalina/loader/WebappClassLoaderBase.java
+++ b/java/org/apache/catalina/loader/WebappClassLoaderBase.java
@@ -2324,6 +2324,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 547dc01c3e..ae44c2dcec 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -169,6 +169,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: [email protected]
For additional commands, e-mail: [email protected]