[ http://jira.jboss.com/jira/browse/JBJMX-86?page=history ]

Dimitris Andreadis reassigned JBJMX-86:
---------------------------------------

    Assign To: Dimitris Andreadis

> 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
>     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:
   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



-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to