This is an automated email from the ASF dual-hosted git repository. remm 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 5d3585d264 69576: Add extra InaccessibleObjectException catch 5d3585d264 is described below commit 5d3585d2648a933e5156607d1402228d0d87420b Author: remm <r...@apache.org> AuthorDate: Tue Feb 11 11:41:15 2025 +0100 69576: Add extra InaccessibleObjectException catch --- java/org/apache/tomcat/util/compat/JreCompat.java | 2 +- webapps/docs/changelog.xml | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/java/org/apache/tomcat/util/compat/JreCompat.java b/java/org/apache/tomcat/util/compat/JreCompat.java index 396a312f73..fac8d62f24 100644 --- a/java/org/apache/tomcat/util/compat/JreCompat.java +++ b/java/org/apache/tomcat/util/compat/JreCompat.java @@ -129,7 +129,7 @@ public class JreCompat { Class<?> clazz = Class.forName("java.io.FileSystem"); f1 = clazz.getDeclaredField("useCanonCaches"); f1.setAccessible(true); - } catch (ReflectiveOperationException | IllegalArgumentException e) { + } catch (ReflectiveOperationException | RuntimeException e) { /* * Log at debug level as this will only be an issue if the field needs to be accessed and most * configurations will not need to do so. Appropriate warnings will be logged if an attempt is made to use diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index 2776fee712..78be602872 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -105,6 +105,15 @@ issues do not "pop up" wrt. others). --> <section name="Tomcat 9.0.100 (remm)" rtext="in development"> + <subsection name="Catalina"> + <changelog> + <fix> + <bug>69576</bug>: Avoid possible failure intializing + <code>JreCompat</code> due to uncaught exception introduced for the + check for CVE-2004-56337. (remm) + </fix> + </changelog> + </subsection> <subsection name="Other"> <changelog> <add> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org