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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]