axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/wsdl TestCaseEmitter.java
Date Tue, 09 Oct 2001 15:45:03 GMT
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);
  
  
  

Mime
View raw message