[
https://issues.apache.org/jira/browse/AXIS2C-1545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marcus Dushshantha Chandradasa reassigned AXIS2C-1545:
------------------------------------------------------
Assignee: Marcus Dushshantha Chandradasa
> Undeclared variable in generated c code
> ---------------------------------------
>
> Key: AXIS2C-1545
> URL: https://issues.apache.org/jira/browse/AXIS2C-1545
> Project: Axis2-C
> Issue Type: Bug
> Components: code generation
> Affects Versions: 1.7.0
> Environment: Windows XP
> Reporter: Carl Lefrançois
> Assignee: Marcus Dushshantha Chandradasa
> Labels: patch
> Fix For: Next Version
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> The variables xsi_prefix, type_attrib, xsi_ns, and xsi_type_attri are
> sometimes not declared even when a code block later uses them. The condition
> controlling their generation is not the same as the condition of a block that
> uses them.
> CADBBeanTemplateSource.xsl revision 909680
> declaration blocks:
> lines 3650, 3653:
> <xsl:if test="@type or $isUnion">
> <xsl:if test="@type">
> used in block:
> line 4149
> <xsl:if test="count(property[@attribute])!=0 or @type">
> Possible patch is to add 'count(property[@attribute])!=0' condition to the
> declaration tests. This change worked in at least one case but no run-time
> test done yet.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]