You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bl...@apache.org on 2001/10/09 17:45:03 UTC
cvs commit: xml-axis/java/src/org/apache/axis/wsdl TestCaseEmitter.java
bloritsch 01/10/09 08:45:03
Modified: java/src/org/apache/axis/wsdl TestCaseEmitter.java
Log:
Handle primitive types correctly.
Revision Changes Path
1.2 +8 -2 xml-axis/java/src/org/apache/axis/wsdl/TestCaseEmitter.java
Index: TestCaseEmitter.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/TestCaseEmitter.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TestCaseEmitter.java 2001/10/09 15:38:07 1.1
+++ TestCaseEmitter.java 2001/10/09 15:45:01 1.2
@@ -66,7 +66,7 @@
* generated stubs.
*
* @author <a href="bloritsch@apache.org">Berin Loritsch</a>
- * @version CVS $Revision: 1.1 $ $Date: 2001/10/09 15:38:07 $
+ * @version CVS $Revision: 1.2 $ $Date: 2001/10/09 15:45:01 $
*/
public class TestCaseEmitter {
@@ -203,7 +203,13 @@
}
Emitter.Parameter param = (Emitter.Parameter) iparam.next();
- if ( this.emitter.isPrimitiveType(param.type) ) {
+ String paramType = param.type;
+ if ( this.emitter.isPrimitiveType(paramType) ) {
+ if ( "boolean".equals(paramType) ) {
+ writer.print("false");
+ } else {
+ writer.print("0");
+ }
} else {
writer.print("new ");
writer.print(param.type);