axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dimuthu Gamage (JIRA)" <>
Subject [jira] Commented: (AXIS2C-1271) adb generated code doesn't handle empty elements
Date Tue, 04 Nov 2008 05:32:46 GMT


Dimuthu Gamage commented on AXIS2C-1271:

Thanks for the patch. I agree with your  patches on const strings and the function prototype

Anyway I think it is not that straightforward to take a value of an empty element as an empty
string. We have to check whether it is nil by checking xsi:nil attribute of the element. If
so the element have to be treated as a nil text. There are multiple places that it is handled
in the templates.

And what are the reasons for renaming some of the variables.


> adb generated code doesn't handle empty elements
> ------------------------------------------------
>                 Key: AXIS2C-1271
>                 URL:
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: code generation
>    Affects Versions: Current (Nightly)
>            Reporter: Eric Haszlakiewicz
>         Attachments: CADBBeanTemplate.diff
>   Original Estimate: 0.08h
>  Remaining Estimate: 0.08h
> The deserialize code generated by wsdl2c doesn't correctly handle elements that have
no content and treats them as if they weren't present at all.  The attached patch fixes this.
 The patch also includes a number of changes to handle const strings more correctly which
were needed to deal with the use of the zero length string constant.  Also, it fixes the prototypes
of the <foo>_is_particle functions so the code can compile with warnings turned on.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message