[ https://issues.apache.org/jira/browse/AXIS2C-1271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644893#action_12644893 ]
Dimuthu Gamage commented on AXIS2C-1271: ---------------------------------------- Hi, Thanks for the patch. I agree with your patches on const strings and the function prototype fix. 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. Thanks DImuthu > adb generated code doesn't handle empty elements > ------------------------------------------------ > > Key: AXIS2C-1271 > URL: https://issues.apache.org/jira/browse/AXIS2C-1271 > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]