[ 
https://issues.apache.org/jira/browse/YOKO-290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Darren Middleman reassigned YOKO-290:
-------------------------------------

    Assignee: Darren Middleman

> Conversion problems from Byte to Character when using an IDL char type
> ----------------------------------------------------------------------
>
>                 Key: YOKO-290
>                 URL: https://issues.apache.org/jira/browse/YOKO-290
>             Project: Yoko - CORBA Server
>          Issue Type: Bug
>          Components: CorbaBinding
>    Affects Versions: 1.0-incubating-M2
>            Reporter: Darren Middleman
>         Assigned To: Darren Middleman
>             Fix For: 1.0-incubating-M2
>
>
> The binding incorrectly converts between Bytes and Characters when a value of 
> IDL type 'char' is used.
> In IDLs which use the IDL type 'char', a conversion needs to be done in the 
> binding to handle the data appropriately on the CORBA and Yoko sides.  On the 
> CORBA side, a Java char is used to represent the data.  However, on the Yoko 
> side, a byte holds the data.  During the marshalling and unmarsalling of data 
> in the binding from one side to another, the correct conversion between a 
> byte and a character needs to be done, accounting for the different ranges 
> (byte -128 to 127 and character 0 to 65535).  Currently the binding does this 
> incorrectly and negative byte values result in large character values, which 
> the ORB will not accept (must fall within the range 0 to 255).

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

Reply via email to