Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 32432 invoked from network); 6 Mar 2008 17:14:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Mar 2008 17:14:58 -0000 Received: (qmail 52232 invoked by uid 500); 6 Mar 2008 17:14:54 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 52113 invoked by uid 500); 6 Mar 2008 17:14:53 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 52102 invoked by uid 500); 6 Mar 2008 17:14:53 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 52099 invoked by uid 99); 6 Mar 2008 17:14:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2008 09:14:53 -0800 X-ASF-Spam-Status: No, hits=-1997.2 required=10.0 tests=ALL_TRUSTED,WEIRD_QUOTING X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2008 17:14:14 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id A26B91A983E; Thu, 6 Mar 2008 09:14:30 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r634351 - /webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl Date: Thu, 06 Mar 2008 17:14:28 -0000 To: axis2-cvs@ws.apache.org From: senaka@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080306171433.A26B91A983E@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: senaka Date: Thu Mar 6 09:14:27 2008 New Revision: 634351 URL: http://svn.apache.org/viewvc?rev=634351&view=rev Log: Fixing JIRA Issue AXIS2-1039 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=634351&r1=634350&r2=634351&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 Thu Mar 6 09:14:27 2008 @@ -2841,10 +2841,16 @@ - + allocated_len += sizeof (axis2_char_t) * ADB_DEFAULT_DIGIT_LIMIT + 1; text_value = (axis2_char_t*) AXIS2_REALLOC (env-> allocator, text_value, allocated_len); - sprintf (text_value, "%s%d%s", text_value, element, seperator); + sprintf (text_value, "%s" AXIS2_PRINTF_INT64_FORMAT_SPECIFIER "%s", text_value, element, seperator); + + + + allocated_len += sizeof (axis2_char_t) * ADB_DEFAULT_DIGIT_LIMIT + 1; + text_value = (axis2_char_t*) AXIS2_REALLOC (env-> allocator, text_value, allocated_len); + sprintf (text_value, "%s" AXIS2_PRINTF_UINT64_FORMAT_SPECIFIER "%s", text_value, element, seperator); @@ -3195,11 +3201,23 @@ - + text_value = (axis2_char_t*) AXIS2_MALLOC (env-> allocator, sizeof (axis2_char_t) * (ADB_DEFAULT_DIGIT_LIMIT + 5 + ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT + axutil_strlen(""))); - sprintf(text_value, " %s%s%s=\"%d\"", p_prefix?p_prefix:"", (p_prefix && axutil_strcmp(p_prefix, ""))?":":"", + sprintf(text_value, " %s%s%s=\"" AXIS2_PRINTF_INT64_FORMAT_SPECIFIER "\"", p_prefix?p_prefix:"", + (p_prefix && axutil_strcmp(p_prefix, ""))?":":"", + "", ); + axutil_stream_write(stream, env, text_value, axutil_strlen(text_value)); + AXIS2_FREE(env-> allocator, text_value); + + + + text_value = (axis2_char_t*) AXIS2_MALLOC (env-> allocator, sizeof (axis2_char_t) * + (ADB_DEFAULT_DIGIT_LIMIT + 5 + ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT + + axutil_strlen(""))); + sprintf(text_value, " %s%s%s=\"" AXIS2_PRINTF_UINT64_FORMAT_SPECIFIER "\"", p_prefix?p_prefix:"", + (p_prefix && axutil_strcmp(p_prefix, ""))?":":"", "", ); axutil_stream_write(stream, env, text_value, axutil_strlen(text_value)); AXIS2_FREE(env-> allocator, text_value); --------------------------------------------------------------------- To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org For additional commands, e-mail: axis-cvs-help@ws.apache.org