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 sa...@apache.org on 2007/09/13 07:44:30 UTC

svn commit: r575176 - /webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl

Author: samisa
Date: Wed Sep 12 22:44:30 2007
New Revision: 575176

URL: http://svn.apache.org/viewvc?rev=575176&view=rev
Log:
Removed the hardcoded text_value_2_temp. Also fixed calling strdup on array list.


Modified:
    webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl

Modified: webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl?rev=575176&r1=575175&r2=575176&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl (original)
+++ webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl Wed Sep 12 22:44:30 2007
@@ -258,7 +258,7 @@
                    </xsl:when>
 
                    <!-- free axis2_char_t s -->
-                   <xsl:when test="$nativePropertyType='axis2_char_t*'">
+                   <xsl:when test="$nativePropertyType='axis2_char_t*' and not(@isarray)">
                       AXIS2_FREE( env-> allocator, <xsl:value-of select="$attriName"/>);
                    </xsl:when>
 
@@ -1793,7 +1793,7 @@
                            axutil_stream_write(stream, env, start_input_str, start_input_str_len);
                             
                            text_value_<xsl:value-of select="$position"/>_temp = axutil_xml_quote_string(env, text_value_<xsl:value-of select="$position"/>, AXIS2_TRUE);
-                           if (text_value_2_temp)
+                           if (text_value_<xsl:value-of select="$position"/>_temp)
                            {
                                axutil_stream_write(stream, env, text_value_<xsl:value-of select="$position"/>_temp, axutil_strlen(text_value_<xsl:value-of select="$position"/>_temp));
                                AXIS2_FREE(env->allocator, text_value_<xsl:value-of select="$position"/>_temp);
@@ -1946,7 +1946,7 @@
                   }
                 </xsl:if>
                 <xsl:choose>
-                    <xsl:when test="@type='axis2_char_t*'">
+                    <xsl:when test="@type='axis2_char_t*' and not(@isarray)">
                         <xsl:value-of select="$name"/>->attrib_<xsl:value-of select="$CName"/> = axutil_strdup(env, param_<xsl:value-of select="$CName"/>);
                     </xsl:when>
                     <xsl:otherwise>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org