You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by dm...@apache.org on 2005/10/30 05:35:53 UTC
svn commit: r329518 -
/jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/model/beans/BeanPropertyPointer.java
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