Hi,
 
I have not counted them, but Java does have limits.

Java limits the number of method parameters to 255 or 254 or less if parmeters are of type long for double.

This limits the number of member variables that an Axis generated bean class can support to 254, because a constructor is created using all the member variables.

The 255 method parameter limit is for static methods and 254 for non static methods

==============================================================================

http://forum.java.sun.com/thread.jspa?threadID=606589&messageID=3315840

http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFile.doc.html#88659

Limitations

fields: 65,535 (does not include inherited fields)

methods: 65,535 (does not include inherited methods)

method parameters: 255 (each long or double counts as two parameters)

===============================================================================

 

 
-----Original Message-----
From: Jerry DuVal [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 14 March 2006 4:25 AM
To: [email protected]
Subject: Too Many Parameters, failing during complie

I'm using the wsdl2Java ant task, compiling the classes using javac.  During compile I get an error

 

compile:

    [mkdir] Created dir: C:\Documents and Settings\jduval\Desktop\java\build\cl

sses

    [javac] Compiling 286 source files to C:\Documents and Settings\jduval\Desk

op\java\build\classes

    [javac] C:\Documents and Settings\jduval\Desktop\java\build\gensrc\com\pace

020\epace\object\JobComponent.java:578: too many parameters

    [javac]     public JobComponent(

    [javac]            ^

    [javac] 1 error

 

 

The constructor for this class does have a lot of parameters.  Any help would be appreciated and thanks ahead of time.

 

 

Reply via email to