You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org> on 2007/09/28 14:53:55 UTC
[jira] Updated: (AXIS-1419) bug in getElementsByTagName of
MessageElement
[ https://issues.apache.org/jira/browse/AXIS-1419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davanum Srinivas updated AXIS-1419:
-----------------------------------
Assignee: (was: Davanum Srinivas)
> bug in getElementsByTagName of MessageElement
> ---------------------------------------------
>
> Key: AXIS-1419
> URL: https://issues.apache.org/jira/browse/AXIS-1419
> Project: Axis
> Issue Type: Bug
> Components: SAAJ
> Affects Versions: 1.2 Beta
> Reporter: nishant kumar
> Attachments: patch1419_new.txt, patch_1419.txt, Test1419.java
>
>
> there is bug in the following method of MessageElement
> public NodeList getElementsByTagName(String name) {
> .....
> // add 2nd Generation
> for(int i =0; i < children.size(); i++){
> nodelist.addChild((MessageElement)children.get(i));
> }
> ....
> }
> first of all why should all the children be blindly added to the nodelist without making any checks for the name.
> secondly why does one think that all the children will be instance of MessageElement that one has once again blindly casted the children into MessageElement
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org