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 gd...@apache.org on 2003/04/17 22:03:13 UTC

cvs commit: xml-axis/java/src/org/apache/axis/wsdl/toJava JavaGeneratorFactory.java

gdaniels    2003/04/17 13:03:13

  Modified:    java/src/org/apache/axis/wsdl/toJava
                        JavaGeneratorFactory.java
  Log:
  Stop writing out uncompilable code in the situation where there is a fault
  defined in the portType which has no equivalent binding fault.  This patch
  simply ignores the "bad" faults - we should probably do something else
  later (post 1.1) in this situation, such as trying to come up with reasonable
  defaults or throwing an error.
  
  Revision  Changes    Path
  1.39      +3 -1      xml-axis/java/src/org/apache/axis/wsdl/toJava/JavaGeneratorFactory.java
  
  Index: JavaGeneratorFactory.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/toJava/JavaGeneratorFactory.java,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -r1.38 -r1.39
  --- JavaGeneratorFactory.java	3 Mar 2003 11:45:19 -0000	1.38
  +++ JavaGeneratorFactory.java	17 Apr 2003 20:03:12 -0000	1.39
  @@ -942,7 +942,9 @@
                   Fault fault = (Fault) i.next();
                   String exceptionName =
                     Utils.getFullExceptionName(fault.getMessage(), symbolTable);
  -                signature = signature + ", " + exceptionName;
  +                if (exceptionName != null) {
  +                    signature = signature + ", " + exceptionName;
  +                }
               }
           }
           return signature;