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 2014/08/25 08:31:43 UTC

svn commit: r1620263 - /sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrItemAdapterFactory.java

Author: cziegeler
Date: Mon Aug 25 06:31:42 2014
New Revision: 1620263

URL: http://svn.apache.org/r1620263
Log:
SLING-3859 : ResourceResolver from JcrItemAdapterFactory is not closed

Modified:
    sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrItemAdapterFactory.java

Modified: sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrItemAdapterFactory.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrItemAdapterFactory.java?rev=1620263&r1=1620262&r2=1620263&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrItemAdapterFactory.java (original)
+++ sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrItemAdapterFactory.java Mon Aug 25 06:31:42 2014
@@ -37,6 +37,12 @@ import org.slf4j.LoggerFactory;
 
 /**
  * AdapterFactory which adapts JCR Nodes and Properties into Resources.
+ *
+ * Whenever a node or property is adapted using this factory, a new resource resolver
+ * is created! Therefore client code using this adapter factory needs to take care
+ * to close the returned resolver properly, otherwise this might result in a memory
+ * leak.
+ *
  * @deprecated
  */
 @Deprecated