From axis-c-dev-return-20794-apmail-ws-axis-c-dev-archive=ws.apache.org@ws.apache.org Sat Mar 07 02:25:19 2009 Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 83923 invoked from network); 7 Mar 2009 02:25:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Mar 2009 02:25:19 -0000 Received: (qmail 14021 invoked by uid 500); 7 Mar 2009 02:25:19 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 13842 invoked by uid 500); 7 Mar 2009 02:25:19 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 13833 invoked by uid 99); 7 Mar 2009 02:25:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Mar 2009 18:25:19 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Mar 2009 02:25:17 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 366D2234C4B4 for ; Fri, 6 Mar 2009 18:24:56 -0800 (PST) Message-ID: <735333500.1236392696221.JavaMail.jira@brutus> Date: Fri, 6 Mar 2009 18:24:56 -0800 (PST) From: "Damitha Kumarage (JIRA)" To: axis-c-dev@ws.apache.org Subject: [jira] Resolved: (AXIS2C-1349) Time Duration related functions does not work In-Reply-To: <2112715035.1235039282100.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2C-1349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Damitha Kumarage resolved AXIS2C-1349. -------------------------------------- Resolution: Fixed This is fixed > Time Duration related functions does not work > --------------------------------------------- > > Key: AXIS2C-1349 > URL: https://issues.apache.org/jira/browse/AXIS2C-1349 > Project: Axis2-C > Issue Type: Bug > Reporter: Damitha Kumarage > > axis2_char_t *duration_str = "P19Y6M4DT12H30M5S"; > axutil_duration_t *duration = NULL; > axis2_char_t *result = NULL; > duration = axutil_duration_create_from_string(env, duration_str); > result = axutil_duration_serialize_duration(duration, env); > printf("result:%s\n", result); > Above code does not work as there is always exception hit in the code. By commenting the following check in code > it works. > while (seq < sizeof(desig)) > { > if (*cur == desig[seq]) > { > num_type = 0; > /*if (seq < (sizeof(desig) - 1)) > { > duration->is_negative = AXIS2_FALSE; > duration->years = duration->months = duration->days = duration->hours = duration->mins = 0; > duration->secs = 0; > AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NONE, > AXIS2_FAILURE); > return AXIS2_FAILURE; > }*/ -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.