axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/wsdl/toJava JavaBeanHelperWriter.java JavaStubWriter.java
Date Thu, 10 Jul 2003 16:43:25 GMT
dims        2003/07/10 09:43:25

  Modified:    java/src/org/apache/axis/wsdl/toJava
                        JavaBeanHelperWriter.java JavaStubWriter.java
  Log:
  Fix for Bug 17348 - WSDL2Java creates method >64K
  
  Notes:
  - Break down the static blocks to a smaller size
  
  Revision  Changes    Path
  1.40      +9 -0      xml-axis/java/src/org/apache/axis/wsdl/toJava/JavaBeanHelperWriter.java
  
  Index: JavaBeanHelperWriter.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/toJava/JavaBeanHelperWriter.java,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- JavaBeanHelperWriter.java	22 Apr 2003 19:36:24 -0000	1.39
  +++ JavaBeanHelperWriter.java	10 Jul 2003 16:43:24 -0000	1.40
  @@ -237,6 +237,10 @@
                   boolean wroteAttrDecl = false;
   
                   for (int i = 0; i < attributes.size(); i += 2) {
  +                    if(((i+1)%10) == 0) {
  +                        pw.println("    }");
  +                        pw.println("    static {");
  +                    }
                       TypeEntry te = (TypeEntry) attributes.get(i);
                       QName attrName = (QName) attributes.get(i + 1);
                       String attrLocalName = attrName.getLocalPart();
  @@ -262,6 +266,11 @@
                   boolean wroteElemDecl = false;
                   
                   for (int i=0; i<elementMetaData.size(); i++) {
  +                    if(((i+1)%10) == 0) {
  +                        pw.println("    }");
  +                        pw.println("    static {");
  +                        wroteElemDecl = false;
  +                    }
                       ElementDecl elem = (ElementDecl) elementMetaData.elementAt(i);
   
                       if (elem.getAnyElement()) {
  
  
  
  1.116     +5 -0      xml-axis/java/src/org/apache/axis/wsdl/toJava/JavaStubWriter.java
  
  Index: JavaStubWriter.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/toJava/JavaStubWriter.java,v
  retrieving revision 1.115
  retrieving revision 1.116
  diff -u -r1.115 -r1.116
  --- JavaStubWriter.java	22 Apr 2003 19:36:26 -0000	1.115
  +++ JavaStubWriter.java	10 Jul 2003 16:43:24 -0000	1.116
  @@ -365,6 +365,11 @@
                   operations.size() + "];");
           pw.println("        org.apache.axis.description.OperationDesc oper;");
           for (int i = 0; i < operations.size(); ++i) {
  +            if(((i+1)%10) == 0) {
  +                pw.println("    }");
  +                pw.println("    static {");
  +                pw.println("        org.apache.axis.description.OperationDesc oper;");
  +            }
               BindingOperation operation = (BindingOperation) operations.get(i);
               Parameters parameters =
                       bEntry.getParameters(operation.getOperation());
  
  
  

Mime
View raw message