axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Dick (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Reopened: (AXISCPP-451) Generated stubs containing faults fail to compile on Linux and AIX
Date Fri, 18 Feb 2005 08:49:48 GMT
     [ http://issues.apache.org/jira/browse/AXISCPP-451?page=history ]
     
Adrian Dick reopened AXISCPP-451:
---------------------------------


Test cases from WSDLs containing faults are still failing to compile on AIX and Linux.
       [cc] /home/axistest/test_P/obj/test/generated/cpp/ExceptionTestDoc/SpecialDetailStruct.cpp:89:
declaration
       [cc]    of `virtual SpecialDetailStruct::~SpecialDetailStruct()' throws different 
       [cc]    exceptions
       [cc] /home/axistest/test_P/obj/test/generated/cpp/ExceptionTestDoc/SpecialDetailStruct.hpp:22:
than
       [cc]    previous declaration `virtual SpecialDetailStruct::~SpecialDetailStruct() 
       [cc]    throw ()'

I believe the following modification to the second line of org.apache.axis.wsdl.wsdl2ws.cpp.BeanParamWriter#writeDestructors
and org.apache.axis.wsdl.wsdl2ws.cpp.literal.BeanParamWriter#writeDestructors should resolve
the problem:

if (type.isFault())
{
    writer.write("\n"+classname+"::~"+classname+"() throw ()\n{\n");
}
else
{
    writer.write("\n"+classname+"::~"+classname+"()\n{\n");
}

> Generated stubs containing faults fail to compile on Linux and AIX
> ------------------------------------------------------------------
>
>          Key: AXISCPP-451
>          URL: http://issues.apache.org/jira/browse/AXISCPP-451
>      Project: Axis-C++
>         Type: Bug
>   Components: WSDL processing
>     Versions: current (nightly)
>     Reporter: Adrian Dick
>     Assignee: Mark Whitlock
>      Fix For: current (nightly)

>
> The generated stubs from a WSDL containing faults fails to compile on AIX and Linux.
> As shown by the test case ExceptionTestDoc:
> In file included from /home/axistest/test_P/obj/test/generated/cpp/ExceptionTestDoc/SpecialDetailStruct.cpp:8:
>        [cc] /home/axistest/test_P/obj/test/generated/cpp/ExceptionTestDoc/SpecialDetailStruct.hpp:22:
looser 
>        [cc]    throw specifier for `virtual SpecialDetailStruct::~SpecialDetailStruct()'
>        [cc] /home/axistest/test_P/wscc-1.0-Linux/include/axis/SoapFaultException.hpp:47:
  
>        [cc]    overriding `virtual axiscpp::SoapFaultException::~SoapFaultException()
throw 
>        [cc]    ()'
>        [cc] /home/axistest/test_P/obj/test/generated/cpp/ExceptionTestDoc/SpecialDetailStruct.hpp:22:
looser
>        [cc]    throw specifier for `virtual SpecialDetailStruct::~SpecialDetailStruct()'
>        [cc] /home/axistest/test_P/wscc-1.0-Linux/include/axis/SoapFaultException.hpp:47:
  
>        [cc]    overriding `virtual axiscpp::SoapFaultException::~SoapFaultException()
throw 
>        [cc]    ()'
>        [cc] /home/axistest/test_P/obj/test/generated/cpp/ExceptionTestDoc/SpecialDetailStruct.hpp:22:
looser
>        [cc]    throw specifier for `virtual SpecialDetailStruct::~SpecialDetailStruct()'
>        [cc] /home/axistest/test_P/wscc-1.0-Linux/include/axis/SoapFaultException.hpp:47:
  
>        [cc]    overriding `virtual axiscpp::SoapFaultException::~SoapFaultException()
throw 
>        [cc]    ()'
>        [cc] /home/axistest/test_P/obj/test/generated/cpp/ExceptionTestDoc/SpecialDetailStruct.hpp:15:
warning: `
>        [cc]    const char*Axis_TypeName_SpecialDetailStruct' defined but not used
> Similar problems are also seen for:
> FaultMappingDoc
> FaultMappingRepeatedDoc
> MathOpsDoc
> TestSoapHeaderBlock
> TestSoapHeaderBlock2
> TestSoapHeaderBlock3

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message