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 "Andreas Veithen (JIRA)" <ax...@ws.apache.org> on 2012/10/21 18:58:12 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 ]
Andreas Veithen updated AXIS-1419:
----------------------------------
Labels: dom-compatibility (was: )
> 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
> Labels: dom-compatibility
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org