incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r932382 - /sling/trunk/bundles/jcr/classloader/src/main/java/org/apache/sling/jcr/classloader/internal/DynamicClassLoaderProviderImpl.java
Date Fri, 09 Apr 2010 12:29:36 GMT
Author: cziegeler
Date: Fri Apr  9 12:29:36 2010
New Revision: 932382

URL: http://svn.apache.org/viewvc?rev=932382&view=rev
Log:
SLING-1480 : Don't use Workspace#move, use Session#move

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

Modified: sling/trunk/bundles/jcr/classloader/src/main/java/org/apache/sling/jcr/classloader/internal/DynamicClassLoaderProviderImpl.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/classloader/src/main/java/org/apache/sling/jcr/classloader/internal/DynamicClassLoaderProviderImpl.java?rev=932382&r1=932381&r2=932382&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/classloader/src/main/java/org/apache/sling/jcr/classloader/internal/DynamicClassLoaderProviderImpl.java
(original)
+++ sling/trunk/bundles/jcr/classloader/src/main/java/org/apache/sling/jcr/classloader/internal/DynamicClassLoaderProviderImpl.java
Fri Apr  9 12:29:36 2010
@@ -183,7 +183,8 @@ public class DynamicClassLoaderProviderI
             newName = cleanPath(newName);
 
             session = this.getSession();
-            session.getWorkspace().move(oldName, newName);
+            session.move(oldName, newName);
+            session.save();
             return true;
         } catch (RepositoryException re) {
             log.error("Cannot rename " + oldName + " to " + newName, re);



Mime
View raw message