axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carl Lefran├žois (JIRA) <j...@apache.org>
Subject [jira] [Created] (AXIS2C-1545) Undeclared variable in generated c code
Date Mon, 11 Apr 2011 19:57:05 GMT
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
             Fix For: Next Version


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: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


Mime
View raw message