This is an automated email from the ASF dual-hosted git repository.
markt-asf 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 46e42a5326 Fix other pattern matching instance
46e42a5326 is described below
commit 46e42a532628ca1745edb8bcfb7bc059b81d3349
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Jun 12 18:04:19 2026 +0100
Fix other pattern matching instance
---
java/org/apache/catalina/ant/jmx/JMXAccessorTask.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/java/org/apache/catalina/ant/jmx/JMXAccessorTask.java
b/java/org/apache/catalina/ant/jmx/JMXAccessorTask.java
index f3260ee3ee..6a07a26d43 100644
--- a/java/org/apache/catalina/ant/jmx/JMXAccessorTask.java
+++ b/java/org/apache/catalina/ant/jmx/JMXAccessorTask.java
@@ -683,7 +683,8 @@ public class JMXAccessorTask extends
BaseRedirectorHelperTask {
createProperty(propertyPrefix + "." + key, value);
}
}
- } else if (result instanceof TabularDataSupport data) {
+ } else if (result instanceof TabularDataSupport) {
+ TabularDataSupport data = (TabularDataSupport) result;
int rowIndex = 0;
for (Object value : data.values()) {
createProperty(propertyPrefix + "." + rowIndex, value);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]