axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prest...@apache.org
Subject svn commit: r397913 - /webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ClientStubWriter.java
Date Fri, 28 Apr 2006 14:50:39 GMT
Author: prestonf
Date: Fri Apr 28 07:50:38 2006
New Revision: 397913

URL: http://svn.apache.org/viewcvs?rev=397913&view=rev
Log:
Changes to Client sample applications for the new memory model and to tidy up any warnings.

Modified:
    webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ClientStubWriter.java

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ClientStubWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ClientStubWriter.java?rev=397913&r1=397912&r2=397913&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ClientStubWriter.java
(original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ClientStubWriter.java
Fri Apr 28 07:50:38 2006
@@ -533,6 +533,7 @@
                 typeissimple = CUtils.isSimpleType(currentParaType);
 
                 currentParamName = "*OutValue" + i;
+                    
                 // Some code need to be merged as we have some duplicated in
                 // coding here.
                 if (typeisarray)
@@ -651,12 +652,14 @@
         				    writer.write( "\n");
         				    writer.write( "\t\t\tif( pReturn" + i + " != NULL && OutValue" +
i + " != NULL)\n");
         				    writer.write( "\t\t\t{\n");
-        				    writer.write( "\t\t\t\tif( *OutValue" + i + " == NULL)\n");
-        				    writer.write( "\t\t\t\t{\n");
-        				    writer.write( "\t\t\t\t\t*OutValue" + i + " = new " + currentParaType + "();\n");
-        				    writer.write( "\t\t\t\t}\n");
+        				    writer.write( "// OutValue" + i + " is not nillable.\n");
+//        				    writer.write( "\t\t\t\tif( *OutValue" + i + " == NULL)\n");
+//        				    writer.write( "\t\t\t\t{\n");
+//        				    writer.write( "\t\t\t\t\t*OutValue" + i + " = new " + currentParaType +
"();\n");
+//        				    writer.write( "\t\t\t\t}\n");
+        				    writer.write( "\t\t\t\tOutValue" + i + " = new " + currentParaType + "();\n");
         				    writer.write( "\n");
-        				    writer.write( "\t\t\t**OutValue" + i + " = *pReturn" + i + ";\n");
+        				    writer.write( "\t\t\t\t*OutValue" + i + " = *pReturn" + i + ";\n");
         				    writer.write( "\t\t\t}\n");
         				    writer.write( "\n");
         				    writer.write( "\t\t\tAxis::AxisDelete( (void *) pReturn" + i + ", " + CUtils.getXSDTypeForBasicType(
currentParaType) + ");\n");



Mime
View raw message