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 bu...@apache.org on 2002/07/23 16:10:35 UTC

DO NOT REPLY [Bug 11084] New: - Stub generation: Local variables must pay attention to parameter names

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11084>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11084

Stub generation: Local variables must pay attention to parameter names

           Summary: Stub generation: Local variables must pay attention to
                    parameter names
           Product: Axis
           Version: beta-3
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: WSDL processing
        AssignedTo: axis-dev@xml.apache.org
        ReportedBy: Stefan.Krause@gmx.at


I created the quite silly webservice method
  public int basicArguments(int a, float c, double d, java.lang.String e)

When axis creates the stub for objectArguments it adds the line
   ... catch (java.lang.Exception e) ...

Obviously this causes an error when trying to compile the stub:
"e is already defined in
objectArguments(java.lang.Integer,java.lang.Float,java.lang.Double,java.lang.String)"

The workaround is clear: Rename the variable for the Exception. 
Axis should check whether e is unused and create another declaration for the
exception if required.