incubator-yoko-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darren Middleman (JIRA)" <j...@apache.org>
Subject [jira] Created: (YOKO-290) Conversion problems from Byte to Character when using an IDL char type
Date Mon, 12 Feb 2007 14:10:05 GMT
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


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.


Mime
View raw message