You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2012/12/26 12:12:13 UTC
[jira] [Commented] (AXIS2C-1572) Undefined variable prefix in
generated code
[ https://issues.apache.org/jira/browse/AXIS2C-1572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13539511#comment-13539511 ]
Hudson commented on AXIS2C-1572:
--------------------------------
Integrated in Axis2 #2053 (See [https://builds.apache.org/job/Axis2/2053/])
Committing fix for AXIS2C-1572 (Revision 1425869)
Result = SUCCESS
nandika :
Files :
* /axis/axis2/java/core/trunk/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl
> Undefined variable prefix in generated code
> -------------------------------------------
>
> Key: AXIS2C-1572
> URL: https://issues.apache.org/jira/browse/AXIS2C-1572
> Project: Axis2-C
> Issue Type: Bug
> Components: wsdl2c tool
> Affects Versions: 1.6.0
> Reporter: Hengli Wang
> Assignee: Nandika Jayawardana
>
> The generated code failed with an undefined variable "prefix". A close look shows that the code is generated by CADBBeanTemplateSource.xsl at line 539-547
> if(prefix_found)
> {
> /* node value contain the prefix */
> char *prefix_value = AXIS2_MALLOC(env->allocator, (cp_ro - node_value - 1) + 1);
> strncpy(prefix, node_value, (cp_ro - node_value - 1));
> prefix[cp_ro - node_value - 1] = '\0';
> qname_ns = axiom_element_find_namespace_uri((axiom_element_t*)axiom_node_get_data_element(parent, env), env, prefix_value, parent);
> AXIS2_FREE(env->allocator, prefix_value);
> }
> I replaced prefix with prefix_value, and the generated code seems good.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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