axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Metke (JIRA)" <>
Subject [jira] Created: (AXISCPP-1039) Code Generation re-initializes array variables with the same name.
Date Sat, 08 Sep 2007 02:53:30 GMT
Code Generation re-initializes array variables with the same name.

                 Key: AXISCPP-1039
             Project: Axis-C++
          Issue Type: Bug
          Components: WSDL processing - RPC
    Affects Versions:  1.6 Beta
         Environment: Windows XP
Visual Studio 8   VC++
java version 1.6.0     JRE 1.6.0-b105
            Reporter: Matthew Metke

When generating (de)serialization code that has multiple arrays the code generator will not
uniquely name each array within the same scope.

	RemoteVersion_Array * array0 = new RemoteVersion_Array();
	array0 = (RemoteVersion_Array *) pIWSDZ->getCmplxArray(array0, (void*)Axis_DeSerialize_RemoteVersion,
								  "affectsVersions", Axis_URI_RemoteVersion);

	param->affectsVersions = array0;

	xsd__string* p_assignee = (pIWSDZ->getElementAsString("assignee",0));
	param->assignee = *p_assignee;
	delete p_assignee;
	Axis_Array * array0 = pIWSDZ->getBasicArray(XSD_STRING, "attachmentNames",0);
	if(param->attachmentNames == NULL)
		param->attachmentNames = new xsd__string_Array();
	param->attachmentNames->clone( *array0);
	Axis::AxisDelete((void*) array0, XSD_ARRAY);

	RemoteComponent_Array * array0 = new RemoteComponent_Array();
	array0 = (RemoteComponent_Array *) pIWSDZ->getCmplxArray(array0, (void*)Axis_DeSerialize_RemoteComponent,
								  "components", Axis_URI_RemoteComponent);

	param->components = array0;

	xsd__dateTime* p_created = (pIWSDZ->getElementAsDateTime("created",0));
	param->created = *p_created;
	delete p_created;
	RemoteCustomFieldValue_Array * array0 = new RemoteCustomFieldValue_Array();
	array0 = (RemoteCustomFieldValue_Array *) pIWSDZ->getCmplxArray(array0, (void*)Axis_DeSerialize_RemoteCustomFieldValue,
								  "customFieldValues", Axis_URI_RemoteCustomFieldValue);

	param->customFieldValues = array0;

A wsdl to demonstrate can be found here:

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message