]
Adrian Brock closed JBAS-1706.
------------------------------
Resolution: Out of Date
Not support jdk4 anymore
setAttribute does not find correct method
-----------------------------------------
Key: JBAS-1706
URL:
https://jira.jboss.org/jira/browse/JBAS-1706
Project: JBoss Application Server
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: JMX
Affects Versions: JBossAS-4.0.1 Final, JBossAS-4.0.1 SP1, JBossAS-4.0.2RC1
Reporter: Michael Kopp
Assignee: Dimitris Andreadis
The setAttribute searches for a method:
Class[] clArr = null;
if (attribute.getValue() != null)
{
clArr = new Class[]{attribute.getValue().getClass()};
}
Method method = implementation.getClass().getMethod("set" +
attribute.getName(), clArr);
This means that if the value is DomElement, the class would be a
org.apache.xerces.dom.DeferredElementImpl. But the Setter would normally reference
org.w3c.dom.Element.
The feature of jboss to support Element in a -service.xml is pretty useless this way.
I think this should be done in the same way as Java5 does it. search for a method with
the right name and the right number of parameters. for the found ones, check if the
paramters are assignable. This way subclass and implementations of interfaces can be
supported.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: