[
https://jira.jboss.org/jira/browse/JBMAN-63?page=com.atlassian.jira.plugi...
]
Scott M Stark resolved JBMAN-63.
--------------------------------
Resolution: Done
The DefaultMetaValueFactory handles ObjectNames as
public static final CompositeMetaType META_TYPE = new ImmutableCompositeMetaType(
ObjectName.class.getName(),
ObjectName.class.getName(),
new String[] { "domain", "keyPropertyList" },
new String[] { "The domain name", "The unordered set of keys and
associated values" },
new MetaType[] { SimpleMetaType.STRING, PropertiesMetaType.INSTANCE }
);
ObjectName meta value creation is inconsistent
----------------------------------------------
Key: JBMAN-63
URL:
https://jira.jboss.org/jira/browse/JBMAN-63
Project: JBoss Managed
Issue Type: Bug
Components: metatype, metavalue
Affects Versions: JBossMan.2.1.0.CR3
Reporter: Scott M Stark
Assignee: Scott M Stark
Fix For: JBossMan.2.1.0.CR4
The meta type/value creation for javax.management.ObjectName is inconsistent. For
ObjectName(String, Hashtable) the resulting composite metatype includes irrelevant
implementation details like the MBeanServer. For ObjectNamem(String), the creation of a
meta value fails with:
java.lang.IllegalArgumentException: The index is already used [CompositeValueSupport:
metaType=[MutableCompositeMetaType{java.lang.Object}] items=[]]
at org.jboss.metatype.api.values.TableValueSupport.put(TableValueSupport.java:140)
at
org.jboss.metatype.plugins.values.DefaultMetaValueFactory.createTableValue(DefaultMetaValueFactory.java:524)
at
org.jboss.metatype.plugins.values.DefaultMetaValueFactory.internalCreate(DefaultMetaValueFactory.java:1051)
at
org.jboss.metatype.plugins.values.DefaultMetaValueFactory.createCompositeValue(DefaultMetaValueFactory.java:490)
at
org.jboss.metatype.plugins.values.DefaultMetaValueFactory.internalCreate(DefaultMetaValueFactory.java:1049)
at
org.jboss.metatype.plugins.values.DefaultMetaValueFactory.create(DefaultMetaValueFactory.java:533)
at
org.jboss.test.metatype.values.factory.test.AbstractMetaValueFactoryTest.createMetaValue(AbstractMetaValueFactoryTest.java:89)
at
org.jboss.test.metatype.values.factory.test.ObjectNameUnitTestCase.testObjectNameMVCreation2(ObjectNameUnitTestCase.java:57)
We need a default builder for the ObjectName type.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira