sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1613887 - /sling/trunk/bundles/jcr/classloader/src/main/java/org/apache/sling/jcr/classloader/internal/ClassLoaderWriterImpl.java
Date Mon, 28 Jul 2014 06:44:21 GMT
Author: cziegeler
Date: Mon Jul 28 06:44:20 2014
New Revision: 1613887

URL: http://svn.apache.org/r1613887
Log:
SLING-3797 : Fields for dynamic references must be volatile

Modified:
    sling/trunk/bundles/jcr/classloader/src/main/java/org/apache/sling/jcr/classloader/internal/ClassLoaderWriterImpl.java

Modified: sling/trunk/bundles/jcr/classloader/src/main/java/org/apache/sling/jcr/classloader/internal/ClassLoaderWriterImpl.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/classloader/src/main/java/org/apache/sling/jcr/classloader/internal/ClassLoaderWriterImpl.java?rev=1613887&r1=1613886&r2=1613887&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/classloader/src/main/java/org/apache/sling/jcr/classloader/internal/ClassLoaderWriterImpl.java
(original)
+++ sling/trunk/bundles/jcr/classloader/src/main/java/org/apache/sling/jcr/classloader/internal/ClassLoaderWriterImpl.java
Mon Jul 28 06:44:20 2014
@@ -106,13 +106,13 @@ public class ClassLoaderWriterImpl
     private SlingRepository repository;
 
     @Reference(policy=ReferencePolicy.DYNAMIC, cardinality=ReferenceCardinality.OPTIONAL_UNARY)
-    private MimeTypeService mimeTypeService;
+    private volatile MimeTypeService mimeTypeService;
 
     @Reference(
             referenceInterface = DynamicClassLoaderManager.class,
             bind = "bindDynamicClassLoaderManager",
             unbind = "unbindDynamicClassLoaderManager")
-    private ServiceReference dynamicClassLoaderManager;
+    private volatile ServiceReference dynamicClassLoaderManager;
 
     /** The bundle asking for this service instance */
     private Bundle callerBundle;



Mime
View raw message