You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2023/08/04 19:00:26 UTC

[tomcat] branch main updated: Explain the check and tone down the log

This is an automated email from the ASF dual-hosted git repository.

remm 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 ca7bfdb610 Explain the check and tone down the log
ca7bfdb610 is described below

commit ca7bfdb6109c42ddbd193c022cc36d6af246db6a
Author: remm <re...@apache.org>
AuthorDate: Fri Aug 4 20:59:59 2023 +0200

    Explain the check and tone down the log
---
 java/org/apache/tomcat/util/compat/Jre22Compat.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/java/org/apache/tomcat/util/compat/Jre22Compat.java b/java/org/apache/tomcat/util/compat/Jre22Compat.java
index 0b690164b6..4d40da80c8 100644
--- a/java/org/apache/tomcat/util/compat/Jre22Compat.java
+++ b/java/org/apache/tomcat/util/compat/Jre22Compat.java
@@ -41,8 +41,8 @@ public class Jre22Compat extends JreCompat {
             // Must be pre-Java 22
             log.debug(sm.getString("jre22Compat.javaPre22"), e);
         } catch (ReflectiveOperationException e) {
-            // Should never happen
-            log.error(sm.getString("jre22Compat.unexpected"), e);
+            // Likely a previous API version
+            log.debug(sm.getString("jre22Compat.unexpected"), e);
         }
         hasPanama = (m1 != null);
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org