Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix attribute value. bean should return native object #293 #301

Merged
merged 2 commits into from
Sep 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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