Invalid generated code for axutil_base64_binary_set_encoded_binary()
--------------------------------------------------------------------

                 Key: AXIS2-4292
                 URL: https://issues.apache.org/jira/browse/AXIS2-4292
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: codegen, databinding
    Affects Versions: 1.4.1
         Environment: Axis2 1.4.1
wsdl2c
            Reporter: Rutger van Eerd


When generating C code from WSDL, erroneous code is generated for to call to 
axutil_base64_binary_set_encoded_binary(). The argument list is closed after 
the first argument but the remaining arguments are present.

Here is the generated code.

                           element = (void*)axutil_base64_binary_create(env);
                           
axutil_base64_binary_set_encoded_binary((axutil_base64_binary_t*)element), env,
                                                                      
attrib_text);
                           adb_Point_set_wkb(_Point,
                                                          env, 
(axutil_base64_binary_t*)element);

Here is the gcc error.

../autogen/src/adb_Point.c: In function `adb_Point_deserialize':
../autogen/src/adb_Point.c:201: error: too few arguments to function 
`axutil_base64_binary_set_encoded_binary'
../autogen/src/adb_Point.c:202: warning: left-hand operand of comma expression 
has no effect
../autogen/src/adb_Point.c:202: error: syntax error before ')' token
.
It can be easily fixed by removing the extra closing parenthesis after 
"(axutil_base64_binary_t*)element)" and before ", env".


-- 
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