[ http://jira.jboss.com/jira/browse/JBJMX-86?page=comments#action_12316400 ] Dimitris Andreadis commented on JBJMX-86: -----------------------------------------
Can you be more specific about the use-case you want to implement? Maybe, provide an example. > setAttribute does not find correct method > ----------------------------------------- > > Key: JBJMX-86 > URL: http://jira.jboss.com/jira/browse/JBJMX-86 > Project: JBoss JMX > Type: Bug > Versions: JBossAS-4.0.1 > Reporter: Michael Kopp > > > 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: http://jira.jboss.com/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ JBoss-Development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-development
