commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmi...@apache.org
Subject svn commit: r157432 - jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/util/ValueUtils.java
Date Mon, 14 Mar 2005 16:31:17 GMT
Author: dmitri
Date: Mon Mar 14 08:31:14 2005
New Revision: 157432

URL: http://svn.apache.org/viewcvs?view=rev&rev=157432
Log:
Applied Vasiliy Stashuk's patch.

Modified:
    jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/util/ValueUtils.java

Modified: jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/util/ValueUtils.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/util/ValueUtils.java?view=diff&r1=157431&r2=157432
==============================================================================
--- jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/util/ValueUtils.java
(original)
+++ jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/util/ValueUtils.java
Mon Mar 14 08:31:14 2005
@@ -549,11 +549,11 @@
 
         // If the declaring class is public, we are done
         Class clazz = method.getDeclaringClass();
-        if (Modifier.isPublic(clazz.getModifiers())) {
-            return (method);
-        }
-
         while (clazz != null) {
+            if (Modifier.isPublic(clazz.getModifiers())) {
+                return (method);
+            }
+
             // Check the implemented interfaces and subinterfaces
             Method aMethod = getAccessibleMethodFromInterfaceNest(clazz, 
                     method.getName(), method.getParameterTypes());



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message