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

rmaucher 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 93f698550b Revert after Mark review
93f698550b is described below

commit 93f698550b5e3ac63c977fa5dc55ad30f890cd71
Author: remm <[email protected]>
AuthorDate: Wed Jun 10 20:18:20 2026 +0200

    Revert after Mark review
---
 java/org/apache/catalina/ant/jmx/JMXAccessorConditionBase.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/java/org/apache/catalina/ant/jmx/JMXAccessorConditionBase.java 
b/java/org/apache/catalina/ant/jmx/JMXAccessorConditionBase.java
index 7f64bbc81b..e114f25439 100644
--- a/java/org/apache/catalina/ant/jmx/JMXAccessorConditionBase.java
+++ b/java/org/apache/catalina/ant/jmx/JMXAccessorConditionBase.java
@@ -22,7 +22,6 @@ import java.net.MalformedURLException;
 import javax.management.MBeanServerConnection;
 import javax.management.ObjectName;
 
-import org.apache.tools.ant.BuildException;
 import org.apache.tools.ant.ProjectComponent;
 import org.apache.tools.ant.taskdefs.condition.Condition;
 
@@ -234,7 +233,7 @@ public abstract class JMXAccessorConditionBase extends 
ProjectComponent implemen
                 return result.toString();
             }
         } catch (Exception e) {
-            throw new BuildException("Cannot access JMX value for condition", 
e);
+            // ignore access or connection open errors
         }
         return null;
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to