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 "Frank Huebbers (JIRA)" <ji...@apache.org> on 2008/03/01 00:53:51 UTC

[jira] Created: (AXIS2C-1039) int64_t cast down to an in serialization of types

int64_t cast down to an in serialization of types
-------------------------------------------------

                 Key: AXIS2C-1039
                 URL: https://issues.apache.org/jira/browse/AXIS2C-1039
             Project: Axis2-C
          Issue Type: Bug
          Components: code generation
    Affects Versions: Current (Nightly)
            Reporter: Frank Huebbers


In the serialization of the types, I was able to track down a problem where int64_t types are cast down to int types, thereby causing truncation problems. In one of my generated code excerpts, I get the following:

sprintf (text_value_3, "%d", (int)_addMyType->property_myInt64Value);

What this should read instead, however, is the following:

sprintf (text_value_3, "%ld", _addMyType->property_myInt64Value);

Frank

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (AXIS2C-1039) int64_t cast down to an in serialization of types

Posted by "Senaka Fernando (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2C-1039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12574075#action_12574075 ] 

Senaka Fernando commented on AXIS2C-1039:
-----------------------------------------

Hi Frank,

I thought we have added this properly. You are expected not to use (int) and there is a constant to be used as the format specifier, AXIS2_PRINTF_INT64_FORMAT_SPECIFIER which should be used instead of "%ld". This takes into consideration, your platform, and also the type of processor on your system, so that we properly interpret the value. I hope you see no issues with uint64.

Regards,
Senaka

> int64_t cast down to an in serialization of types
> -------------------------------------------------
>
>                 Key: AXIS2C-1039
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1039
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: code generation
>    Affects Versions: Current (Nightly)
>            Reporter: Frank Huebbers
>
> In the serialization of the types, I was able to track down a problem where int64_t types are cast down to int types, thereby causing truncation problems. In one of my generated code excerpts, I get the following:
> sprintf (text_value_3, "%d", (int)_addMyType->property_myInt64Value);
> What this should read instead, however, is the following:
> sprintf (text_value_3, "%ld", _addMyType->property_myInt64Value);
> Frank

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Resolved: (AXIS2C-1039) int64_t cast down to an in serialization of types

Posted by "Senaka Fernando (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-1039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Senaka Fernando resolved AXIS2C-1039.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: Current (Nightly)
         Assignee: Senaka Fernando

Fixed Issue

> int64_t cast down to an in serialization of types
> -------------------------------------------------
>
>                 Key: AXIS2C-1039
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1039
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: code generation
>    Affects Versions: Current (Nightly)
>            Reporter: Frank Huebbers
>            Assignee: Senaka Fernando
>             Fix For: Current (Nightly)
>
>
> In the serialization of the types, I was able to track down a problem where int64_t types are cast down to int types, thereby causing truncation problems. In one of my generated code excerpts, I get the following:
> sprintf (text_value_3, "%d", (int)_addMyType->property_myInt64Value);
> What this should read instead, however, is the following:
> sprintf (text_value_3, "%ld", _addMyType->property_myInt64Value);
> Frank

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Closed: (AXIS2C-1039) int64_t cast down to an in serialization of types

Posted by "Frank Huebbers (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-1039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Frank Huebbers closed AXIS2C-1039.
----------------------------------


I updated all my axis code (snapshot from March 2nd) and now everything works.

Thanks.

Cheers,
Frank

> int64_t cast down to an in serialization of types
> -------------------------------------------------
>
>                 Key: AXIS2C-1039
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1039
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: code generation
>    Affects Versions: Current (Nightly)
>            Reporter: Frank Huebbers
>            Assignee: Senaka Fernando
>             Fix For: Current (Nightly)
>
>
> In the serialization of the types, I was able to track down a problem where int64_t types are cast down to int types, thereby causing truncation problems. In one of my generated code excerpts, I get the following:
> sprintf (text_value_3, "%d", (int)_addMyType->property_myInt64Value);
> What this should read instead, however, is the following:
> sprintf (text_value_3, "%ld", _addMyType->property_myInt64Value);
> Frank

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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