jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r645415 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/PropertyImpl.java
Date Mon, 07 Apr 2008 08:58:37 GMT
Author: mreutegg
Date: Mon Apr  7 01:58:36 2008
New Revision: 645415

URL: http://svn.apache.org/viewvc?rev=645415&view=rev
Log:
JCR-1519: Property.getLength() returns -1 for BOOLEAN, REFERENCE and DATE values

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/PropertyImpl.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/PropertyImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/PropertyImpl.java?rev=645415&r1=645414&r2=645415&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/PropertyImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/PropertyImpl.java
Mon Apr  7 01:58:36 2008
@@ -174,6 +174,9 @@
             case PropertyType.STRING:
             case PropertyType.LONG:
             case PropertyType.DOUBLE:
+            case PropertyType.DATE:
+            case PropertyType.REFERENCE:
+            case PropertyType.BOOLEAN:
                 return value.toString().length();
 
             case PropertyType.NAME:



Mime
View raw message