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 Nadir Amra <am...@us.ibm.com> on 2006/01/31 00:55:47 UTC

tests failing with incompatible types

I downloaded yesterday's code and ran test bucket and getting some compile 
errors:

       [cc] 
"/home/amra/axis/L060127/obj/test/generated/cpp/UnitTest_ComplexTypeNillableAll/aRecord.cpp", 
line 145.51: CZP0256(30)
 parameter of type "int **" cannot be initialized with an expression of 
type "axiscpp::xsd__int *". 
       [cc] 
"/home/amra/axis/L060127/obj/test/generated/cpp/UnitTest_ComplexTypeNillableAll/aRecord.cpp", 
line 145.51: CZP1205(0)
he error occurred while converting to parameter 1 of 
"aRecord::setfield1(xsd__int **, bool)". 

The code that is generated that is in error:

void aRecord::setfield1(xsd__int* * pInValue, bool deep) { ... }


int Axis_DeSerialize_aRecord(aRecord* param, IWrapperSoapDeSerializer* 
pIWSDZ)
{
                        xsd__int *      pValue0 = pIWSDZ->getElementAsInt( 
"field1", 0);

                        if( pValue0 == NULL)
                        {
                                param->field1 = NULL;
                        }
                        else
                        {
========>                       param->setfield1 (pValue0);
                                Axis::AxisDelete( (void *) pValue0, 
XSD_INT);

                        } 

Still looking into this but if someone knows anything about this please 
let us know.

Nadir K. Amra


Re: tests failing with incompatible types

Posted by Manohar K Chintala <cm...@in.ibm.com>.
Hi Nadir,

This problem is reported in JIRA 871. You can refer this jira for more
details.


Regards
Manohar



                                                                           
             Nadir Amra                                                    
             <am...@us.ibm.com>                                             
                                                                        To 
             01/31/2006 05:25          "Apache AXIS C Developers List"     
             AM                        <ax...@ws.apache.org>          
                                                                        cc 
                                                                           
             Please respond to                                     Subject 
              "Apache AXIS C           tests failing with incompatible     
             Developers List"          types                               
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




I downloaded yesterday's code and ran test bucket and getting some compile
errors:

       [cc]
"/home/amra/axis/L060127/obj/test/generated/cpp/UnitTest_ComplexTypeNillableAll/aRecord.cpp",

line 145.51: CZP0256(30)
 parameter of type "int **" cannot be initialized with an expression of
type "axiscpp::xsd__int *".
       [cc]
"/home/amra/axis/L060127/obj/test/generated/cpp/UnitTest_ComplexTypeNillableAll/aRecord.cpp",

line 145.51: CZP1205(0)
he error occurred while converting to parameter 1 of
"aRecord::setfield1(xsd__int **, bool)".

The code that is generated that is in error:

void aRecord::setfield1(xsd__int* * pInValue, bool deep) { ... }


int Axis_DeSerialize_aRecord(aRecord* param, IWrapperSoapDeSerializer*
pIWSDZ)
{
                        xsd__int *      pValue0 = pIWSDZ->getElementAsInt(
"field1", 0);

                        if( pValue0 == NULL)
                        {
                                param->field1 = NULL;
                        }
                        else
                        {
========>                       param->setfield1 (pValue0);
                                Axis::AxisDelete( (void *) pValue0,
XSD_INT);

                        }

Still looking into this but if someone knows anything about this please
let us know.

Nadir K. Amra