directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ersi...@apache.org
Subject svn commit: r418152 - /directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/DirectoryClassUtils.java
Date Thu, 29 Jun 2006 23:31:32 GMT
Author: ersiner
Date: Thu Jun 29 16:31:31 2006
New Revision: 418152

URL: http://svn.apache.org/viewvc?rev=418152&view=rev
Log:
Fixed bug in our Class.getMethod replacement.
It was not checking for method's name. It was just looking for parameter list compatibility.

Modified:
    directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/DirectoryClassUtils.java

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/DirectoryClassUtils.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/DirectoryClassUtils.java?rev=418152&r1=418151&r2=418152&view=diff
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/DirectoryClassUtils.java
(original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/DirectoryClassUtils.java
Thu Jun 29 16:31:31 2006
@@ -66,6 +66,13 @@
         // For each method of the clazz...
         for ( int mx = 0; mx < methods.length; mx++ )
         {
+            // If the method name does not match...
+            if ( !candidateMethodName.equals( methods[ mx ].getName() ) )
+            {
+                // ... Go on with the next method.
+                continue;
+            }
+            
             // ... Get parameter types list.
             Class[] parameterTypes = methods[ mx ].getParameterTypes();
             



Mime
View raw message