axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <axis-...@ws.apache.org>
Subject [jira] [Updated] (AXIS-1419) bug in getElementsByTagName of MessageElement
Date Sun, 21 Oct 2012 16:58:12 GMT

     [ 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


Mime
View raw message