axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject svn commit: r512459 - /webservices/axis/trunk/java/src/org/apache/axis/wsdl/toJava/JavaBeanWriter.java
Date Tue, 27 Feb 2007 22:32:51 GMT
Author: tomj
Date: Tue Feb 27 14:32:50 2007
New Revision: 512459

URL: http://svn.apache.org/viewvc?view=rev&rev=512459
Log:
Do not write constructors for JavaBeans that have more than
254 arguments as Java will not compile these classes.

Have to love Amazon.com web services.

Modified:
    webservices/axis/trunk/java/src/org/apache/axis/wsdl/toJava/JavaBeanWriter.java

Modified: webservices/axis/trunk/java/src/org/apache/axis/wsdl/toJava/JavaBeanWriter.java
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/java/src/org/apache/axis/wsdl/toJava/JavaBeanWriter.java?view=diff&rev=512459&r1=512458&r2=512459
==============================================================================
--- webservices/axis/trunk/java/src/org/apache/axis/wsdl/toJava/JavaBeanWriter.java (original)
+++ webservices/axis/trunk/java/src/org/apache/axis/wsdl/toJava/JavaBeanWriter.java Tue Feb
27 14:32:50 2007
@@ -637,9 +637,14 @@
         pw.println();
     }
 
+    /**
+     * Write a constructor containing the fields in this class.
+     * Will not write a construtor with more than 254 arguments as
+     * the Java compiler will choke.
+     */
     protected void writeMinimalConstructor() {
 
-        if (isUnion() || names.size() == 0) {
+        if (isUnion() || names.size() == 0 || names.size() > 254) {
             return;
         }
 
@@ -771,7 +776,7 @@
         int localParams = paramTypes.size() - names.size() / 2;
 
         // Now write the constructor signature
-        if (paramTypes.size() > 0) {
+        if (paramTypes.size() > 0 && paramTypes.size() < 255) {
 
             // Prevent name clash between local parameters and the
             // parameters for the super class



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message