Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-1545

Undeclared variable in generated c code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.7.0
    • None
    • code generation
    • Windows XP

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            carl.lefrancois Carl Lefrançois
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified