commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmi...@apache.org
Subject svn commit: r329518 - /jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/model/beans/BeanPropertyPointer.java
Date Sun, 30 Oct 2005 04:35:53 GMT
Author: dmitri
Date: Sat Oct 29 21:35:50 2005
New Revision: 329518

URL: http://svn.apache.org/viewcvs?rev=329518&view=rev
Log:
Fixed bug 37299. Atomic values should declare that they have 0 properties.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37299

Modified:
    jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/model/beans/BeanPropertyPointer.java

Modified: jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/model/beans/BeanPropertyPointer.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/model/beans/BeanPropertyPointer.java?rev=329518&r1=329517&r2=329518&view=diff
==============================================================================
--- jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/model/beans/BeanPropertyPointer.java
(original)
+++ jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/model/beans/BeanPropertyPointer.java
Sat Oct 29 21:35:50 2005
@@ -40,7 +40,6 @@
     private Object baseValue = UNINITIALIZED;
     private Object value = UNINITIALIZED;
     
-    private static final int UNKNOWN_LENGTH_MAX_COUNT = 10000;
 
     public BeanPropertyPointer(NodePointer parent, JXPathBeanInfo beanInfo) {
         super(parent);
@@ -58,6 +57,9 @@
      * Number of the bean's properties.
      */
     public int getPropertyCount() {
+        if (beanInfo.isAtomic()) {
+            return 0;
+        }
         return getPropertyDescriptors().length;
     }
 



---------------------------------------------------------------------
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