axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From axis-...@ws.apache.org
Subject [jira] Updated: (AXIS-1419) bug in getElementsByTagName of MessageElement
Date Fri, 15 Oct 2004 18:05:54 GMT
The following issue has been updated:

    Updater: Davanum Srinivas (mailto:davanum@gmail.com)
       Date: Fri, 15 Oct 2004 11:05 AM
    Changes:
             Component changed to SAAJ
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/AXIS-1419?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1419

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1419
    Summary: bug in getElementsByTagName of MessageElement
       Type: Bug

     Status: Open
   Priority: Major

    Project: Axis
 Components: 
             SAAJ
   Versions:
             1.2 Beta

   Assignee: Davanum Srinivas
   Reporter: nishant kumar

    Created: Mon, 28 Jun 2004 3:38 AM
    Updated: Fri, 15 Oct 2004 11:05 AM

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


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message