Bug in stub generated parsing response with array of ints 
----------------------------------------------------------

                 Key: AXIS2C-846
                 URL: https://issues.apache.org/jira/browse/AXIS2C-846
             Project: Axis2-C
          Issue Type: Bug
          Components: code generation
    Affects Versions: Current (Nightly)
         Environment: Linux
            Reporter: Antonio Chiurla


Parsing a response wich conatains an array of ints,
the array is not populated with values contained in SOAP response because the 
generated stub
test if text_value is different from NULL before to get text of element.

In my investigations I found a problem in file: 
modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl
I think is sufficient the following patch at line 1483:

                                        <xsl:when 
test="$nativePropertyType='long' or $nativePropertyType='unsigned long'">
+                                        text_value = 
axiom_element_get_text(current_element, env, current_node);
                                          if(text_value != NULL)
                                          {
                                              /* we keeps long in arrays from 
their pointers */
-                                              text_value = 
axiom_element_get_text(current_element, env, current_node);
                                              element = AXIS2_MALLOC(env-> 
allocator, sizeof(long));
                                              (*(<xsl:value-of 
select="$nativePropertyType"/>*)element) = atol(text_value);
                                              
axutil_array_list_add_at(arr_list, env, i, element);
                                          }
  

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to