You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2009/08/10 10:11:49 UTC
svn commit: r802685 -
/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrPropertyMap.java
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);