axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dimu...@apache.org
Subject svn commit: r742131 - /webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl
Date Sun, 08 Feb 2009 17:41:02 GMT
Author: dimuthu
Date: Sun Feb  8 17:41:01 2009
New Revision: 742131

URL: http://svn.apache.org/viewvc?rev=742131&view=rev
Log:
Fixing https://issues.apache.org/jira/browse/AXIS2C-1341, thanks Eric Haszlakiewicz for the
patch

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=742131&r1=742130&r2=742131&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
Sun Feb  8 17:41:01 2009
@@ -1124,7 +1124,7 @@
                 /* This should be checked before everything */
                 AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, 
                             "Failed in building adb object for <xsl:value-of select="$originalName"/>
: "
-                            "NULL elemenet can not be passed to deserialize");
+                            "NULL element can not be passed to deserialize");
                 return AXIS2_FAILURE;
               }
               </xsl:if>
@@ -3155,7 +3155,11 @@
 
                       <!-- add axis2_char_t* s -->
                       <xsl:when test="$nativePropertyType='axis2_char_t*'">
-                         text_value = (axis2_char_t*)axutil_strdup(env, <xsl:value-of
select="$propertyInstanceName"/>);
+                         text_value = (axis2_char_t*)axutil_xml_quote_string(env, <xsl:value-of
select="$propertyInstanceName"/>, AXIS2_FALSE);
+                         if (!text_value)
+                         {
+                             text_value = (axis2_char_t*)axutil_strdup(env, <xsl:value-of
select="$propertyInstanceName"/>);
+                         }
                       </xsl:when>
 
                       <!-- add axutil_uri_t s -->



Mime
View raw message