You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by la...@apache.org on 2008/02/16 03:34:01 UTC

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

Author: lahiru
Date: Fri Feb 15 18:33:57 2008
New Revision: 628229

URL: http://svn.apache.org/viewvc?rev=628229&view=rev
Log:
fixed the Axis2c issue 977.

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=628229&r1=628228&r2=628229&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 Fri Feb 15 18:33:57 2008
@@ -1947,11 +1947,16 @@
                                           {
                                                if (!axutil_strcasecmp (text_value , "true"))
                                                {
-                                                  axutil_array_list_add_at(arr_list, env, i, (void*)AXIS2_TRUE);
+                                                  element = AXIS2_MALLOC(env->allocator,sizeof(axis2_bool_t));
+                                                  (*(<xsl:value-of select="$nativePropertyType"/>*)element) = AXIS2_TRUE;
+                                                  axutil_array_list_add_at(arr_list, env, i, (void*)element);
                                                }
                                                else
                                                {
-                                                  axutil_array_list_add_at(arr_list, env, i, (void*)AXIS2_FALSE);
+                                                  element = AXIS2_MALLOC(env->allocator,sizeof(axis2_bool_t));
+                                                  (*(<xsl:value-of select="$nativePropertyType"/>*)element) = AXIS2_FALSE;
+                                                  axutil_array_list_add_at(arr_list, env, i, (void*)element);
+
                                                }
                                           }
                                           <xsl:if test="not(@nillable)">
@@ -2426,11 +2431,15 @@
                                           {
                                               if (!axutil_strcasecmp (text_value , "true"))
                                               {
-                                                 axutil_array_list_add_at(arr_list, env, i, (void*)AXIS2_TRUE);
+                                                  element = AXIS2_MALLOC(env->allocator,sizeof(axis2_bool_t));
+                                                  (*(<xsl:value-of select="$nativePropertyType"/>*)element) = AXIS2_TRUE;
+                                                  axutil_array_list_add_at(arr_list, env, i, (void*)element);
                                               }
                                               else
                                               {
-                                                 axutil_array_list_add_at(arr_list, env, i, (void*)AXIS2_FALSE);
+                                                  element = AXIS2_MALLOC(env->allocator,sizeof(axis2_bool_t));
+                                                  (*(<xsl:value-of select="$nativePropertyType"/>*)element) = AXIS2_FALSE;
+                                                  axutil_array_list_add_at(arr_list, env, i, (void*)element);
                                               }
                                           }
                                           <xsl:if test="not(@nillable)">



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