You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by javaDev <ws...@bk.ru> on 2006/11/16 18:21:51 UTC

axis2.databinding.utils.BeanUtil bug

Hi
Imho there is a error-prone point in the org.apache.axis2.databinding.utils.BeanUtil:
275:  PropertyDescriptor prty = ...;
  ......
294:  prty.getWriteMethod().invoke(beanObj, parms);
      ^^^^^^^^^^^^^^^^^^^^

Since java bean convention allows existence of just one of the pair (considering this property as read- or write- only correspondingly), the prty.getWriteMethod() might return null. In such case NLP is thrown. Axis121, which I use during several last years, just omits such fields. Well, m.b. it was decided to prohibit such situation - but in such case, I believe, something more clear and clean that NLP should be thrown 


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: axis2.databinding.utils.BeanUtil bug

Posted by Davanum Srinivas <da...@gmail.com>.
Bug in JIRA please.

-- dims

On 11/16/06, javaDev <ws...@bk.ru> wrote:
> Hi
> Imho there is a error-prone point in the org.apache.axis2.databinding.utils.BeanUtil:
> 275:  PropertyDescriptor prty = ...;
>   ......
> 294:  prty.getWriteMethod().invoke(beanObj, parms);
>       ^^^^^^^^^^^^^^^^^^^^
>
> Since java bean convention allows existence of just one of the pair (considering this property as read- or write- only correspondingly), the prty.getWriteMethod() might return null. In such case NLP is thrown. Axis121, which I use during several last years, just omits such fields. Well, m.b. it was decided to prohibit such situation - but in such case, I believe, something more clear and clean that NLP should be thrown
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org