[prev in list] [next in list] [prev in thread] [next in thread]
List: jakarta-commons-dev
Subject: svn commit: r329518 -
From: dmitri () apache ! org
Date: 2005-10-30 4:35:53
Message-ID: 20051030043554.10150.qmail () minotaur ! apache ! org
[Download RAW message or body]
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/ap \
ache/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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic