You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Damitha Kumarage (JIRA)" <ji...@apache.org> on 2009/02/19 11:28:02 UTC
[jira] Created: (AXIS2C-1349) Time Duration related functions does
not work
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.
[jira] Resolved: (AXIS2C-1349) Time Duration related functions does
not work
Posted by "Damitha Kumarage (JIRA)" <ji...@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.