axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Hamid (JIRA)" <>
Subject [jira] Created: (AXIS-2105) Regression in ElementDecl/SymTabEntry getName()
Date Fri, 08 Jul 2005 16:29:10 GMT
Regression in ElementDecl/SymTabEntry getName()

         Key: AXIS-2105
     Project: Apache Axis
        Type: Bug
  Components: Serialization/Deserialization, WSDL processing  
    Versions: 1.2.1    
    Reporter: Aaron Hamid

Using the following schema type as an example:

<xsd:complexType name="__MyType_in">
    <xsd:element name="id" nillable="true" type="xsd:string" minOccurs="0"/>
    <xsd:element name="check_all" nillable="true" type="xsd:boolean" minOccurs="0"/>

In Axis 1.1 ElementDecl.getName() returned the unqualified field name of the element, e.g.:

getName() on the ElementDecl of "check_all" would return: "check_all"

In 1.2.1 this seems to have broken.  In Revision 1.10 of ElementDecl, ElementDecl is made
to subclass ContainedEntry, and therefore SymTabEntry, and the setName/getName methods that
operated on QName were removed and implicitly replaced with the super class SymTabEntry setName/getName
that operate on String.  However, the name field of SymTabEntry superclass is never set, so
getName on an ElementDecl always returns null.



[DEBUG] DynamicType - null
[DEBUG] DynamicType - __MyType_in>check_all
[DEBUG] DynamicType - __MyType_in>check_all
[DEBUG] DynamicType - __MyType_in>check_all

As you can see, getName() returns null.  My expectation is that it return "check_all".  Currently
I am obtaining the QName, and then parsing the substring that starts with '>' to obtain
the field name.  I am not familiar with this notation however.  Is it ad-hoc or specified

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message