Skip to content

Commit

Permalink
Fix attribute value. bean should return native object #293 (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
yurem authored Sep 7, 2023
1 parent ea2cd64 commit 0c1023c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -373,7 +374,7 @@ private Object getAttributeValue(AttributeDescription ad, ByteString value) {
* associated with this MBean.
*/
@Override
public Attribute getAttribute(String attributeName)
public Object getAttribute(String attributeName)
throws AttributeNotFoundException
{
// Get the jmx Client connection
Expand All @@ -398,7 +399,7 @@ public Attribute getAttribute(String attributeName)
throw new AttributeNotFoundException(message.toString());
}

return getJmxAttribute(attributeName);
return getJmxAttribute(attributeName).getValue();
}
catch (AttributeNotFoundException e)
{
Expand Down

0 comments on commit 0c1023c

Please sign in to comment.