QUSIR / staff

Automatically exported from code.google.com/p/staff
Apache License 2.0
0 stars 0 forks source link

Generate code with error for sequence containing an element followed by a choice #170

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Unzip the attached zipped file.
2. Run "staff_codegen -pwsdl -tclient test.wsdl" against the unzipped WSDL file.
3.

What is the expected output? What do you see instead?
Expect the generated stub code will compile without any error, but instead, it 
won't.

What version of the product are you using? On what operating system?
Source code of staff-2.0.0 Alpha 1 svn revision 670
On Linux

Please provide any additional information below.
If you look at the implementation of "DataObject& operator<<(DataObject& 
rdoParam, const struct ::structureItem& rstStruct)" in "testProxy.cpp" 
generated by "staff_codegen", you will notice there is a "else-if" statement 
without having a matching "if" before it. I think it has to do with a very 
specific (yet, valid) situation where there's a sequence containing an element 
followed by a choice.

Original issue reported on code.google.com by kenn...@gmail.com on 6 Jun 2012 at 8:27

Attachments:

GoogleCodeExporter commented 9 years ago
This issue is related to the client Proxy template, not the wsdl module.

Very like this issue comes with first a1 revision.

Original comment by loentar on 6 Jun 2012 at 10:03

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r679.

Original comment by loentar on 6 Jun 2012 at 10:21