incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r802685 - /sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrPropertyMap.java
Date Mon, 10 Aug 2009 08:11:49 GMT
Author: cziegeler
Date: Mon Aug 10 08:11:49 2009
New Revision: 802685

URL: http://svn.apache.org/viewvc?rev=802685&view=rev
Log:
SLING-1077 : Try to encode map keys for value map implementations
Use the ISO9075 encoding for keys and add new tests.

Modified:
    sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrPropertyMap.java

Modified: sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrPropertyMap.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrPropertyMap.java?rev=802685&r1=802684&r2=802685&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrPropertyMap.java
(original)
+++ sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrPropertyMap.java
Mon Aug 10 08:11:49 2009
@@ -240,7 +240,7 @@
                 while (pi.hasNext()) {
                     Property prop = pi.nextProperty();
                     final String name = prop.getName();
-                    final String key = ISO9075.encode(name);
+                    final String key = ISO9075.decode(name);
                     if (!cache.containsKey(key)) {
                         final CacheEntry entry = new CacheEntry(prop);
                         cache.put(key, entry);



Mime
View raw message