Return-Path: Delivered-To: apmail-xml-axis-dev-archive@xml.apache.org Received: (qmail 66066 invoked by uid 500); 5 Jun 2001 08:31:59 -0000 Mailing-List: contact axis-dev-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@xml.apache.org Received: (qmail 65720 invoked from network); 5 Jun 2001 08:31:26 -0000 Received: from e21.nc.us.ibm.com (32.97.136.227) by h31.sny.collab.net with SMTP; 5 Jun 2001 08:31:26 -0000 Received: from southrelay02.raleigh.ibm.com (southrelay02.raleigh.ibm.com [9.37.3.209]) by e21.nc.us.ibm.com (8.9.3/8.9.3) with ESMTP id EAA32386 for ; Tue, 5 Jun 2001 04:24:22 -0500 Received: from d04nm204.raleigh.ibm.com (d04nm204.raleigh.ibm.com [9.67.228.13]) by southrelay02.raleigh.ibm.com (8.11.1/NCO v4.96) with ESMTP id f558UdC48936 for ; Tue, 5 Jun 2001 04:30:39 -0400 Importance: Normal Subject: Re: cvs commit: xml-axis/java/src/org/apache/axis/utils/cache JavaMethod.java To: axis-dev@xml.apache.org X-Mailer: Lotus Notes Release 5.0.3 (Intl) 21 March 2000 Message-ID: From: "Doug Davis" Date: Tue, 5 Jun 2001 08:38:12 +0200 X-MIMETrack: Serialize by Router on D04NM204/04/M/IBM(Release 5.0.6 |December 14, 2000) at 06/05/2001 04:30:38 AM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N To say that we'll match on # of args but then never use the # of args when the name is unique was wrong to me. Granted a check for null would be nice, but I still think it needs to check # of args since the soap-env might have a different # of args than the java method and this search will match on it -which is wrong. -Dug Sam Ruby/Raleigh/IBM@IBMUS on 06/04/2001 08:09:08 PM Please respond to axis-dev@xml.apache.org To: axis-dev@xml.apache.org cc: Subject: Re: cvs commit: xml-axis/java/src/org/apache/axis/utils/cache JavaMethod.java dug: > > =================================================================== > RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/utils/cache/JavaMethod.java,v > retrieving revision 1.2 > retrieving revision 1.3 > diff -u -r1.2 -r1.3 > --- JavaMethod.java 2001/05/22 18:42:41 1.2 > +++ JavaMethod.java 2001/06/02 16:02:21 1.3 > @@ -120,7 +120,8 @@ > } > } > } > - > + if ( unique.getParameterTypes().length != numargs ) > + return null ; > return unique; > } > }; -1. First, unique may be null. Second, the functional description of this method is as follows: /** * Attempt to find the closest matching method based on the number * of arguments only. Note: if there are multiple matches, one * will be picked randomly. If the name is unique, it is simply * returned without checking as attempts to invoke a method based * on this will undoubtably fail anyway. * @param numargs number of arguments * @return closest match */ Third, RPCElement.java depends on the function working as specified. - Sam Ruby