Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.6.0
-
None
-
None
Description
In CADBBeanTemplateSource.xsl,the serialize_obj code defines qname_uri and qname_prefix only for non-simple types
axiom_node_t* AXIS2_CALL
<xsl:value-of select="$axis2_name"/>_serialize_obj(
...
<!--now distinguise the properties specific to simple types -->
<xsl:choose>
<xsl:when test="@simple">
...
</xsl:when>
<!-- non simple types -->
<xsl:otherwise>
axiom_namespace_t *ns1 = NULL;
axis2_char_t *qname_uri = NULL;
axis2_char_t *qname_prefix = NULL;
But later, they are used for simple types,
<!-- here only simple type possible -->
<!-- ADB_DEFAULT_DIGIT_LIMIT (64) bytes is used to the store the string representation of the number and the namespace prefix + ":" -->
<xsl:choose>
...
<!-- add axutil_qname_t s -->
<xsl:when test="$nativePropertyType='axutil_qname_t*'">
qname_uri = axutil_qname_get_uri(<xsl:value-of select="$propertyInstanceName"/>, env);
And the generated code now has undefined qname_uri and qname_prefix.