From 0c1023cdcedebd699433fd7e48ad48eead623a92 Mon Sep 17 00:00:00 2001
From: Yuriy Movchan <Yuriy.Movchan@gmail.com>
Date: Thu, 07 Sep 2023 05:40:40 +0000
Subject: [PATCH] Fix attribute value. bean should return native object #293 (#301)
---
opendj-server-legacy/src/main/java/org/opends/server/config/JMXMBean.java | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/config/JMXMBean.java b/opendj-server-legacy/src/main/java/org/opends/server/config/JMXMBean.java
index b3fd054..a3ae326 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/config/JMXMBean.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/config/JMXMBean.java
@@ -51,6 +51,7 @@
import static org.opends.server.util.ServerConstants.MBEAN_BASE_DOMAIN;
import static org.opends.server.util.StaticUtils.isAlpha;
import static org.opends.server.util.StaticUtils.isDigit;
+import static org.opends.server.schema.SchemaConstants.SYNTAX_INTEGER_OID;
/**
* This class defines a JMX MBean that can be registered with the Directory
@@ -373,7 +374,7 @@
* associated with this MBean.
*/
@Override
- public Attribute getAttribute(String attributeName)
+ public Object getAttribute(String attributeName)
throws AttributeNotFoundException
{
// Get the jmx Client connection
@@ -398,7 +399,7 @@
throw new AttributeNotFoundException(message.toString());
}
- return getJmxAttribute(attributeName);
+ return getJmxAttribute(attributeName).getValue();
}
catch (AttributeNotFoundException e)
{
--
Gitblit v1.10.0