svn commit: r564585 - /lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNode.java

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Fri Aug 10 06:38:27 2007
New Revision: 564585

URL: http://svn.apache.org/viewvc?view=rev&rev=564585
Log:
Fixed javadoc error, synchronize lock method in SourceNode

Modified:
    lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNode.java

Modified: lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNode.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNode.java?view=diff&rev=564585&r1=564584&r2=564585
==============================================================================
--- lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNode.java (original)
+++ lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNode.java Fri Aug 10 06:38:27 2007
@@ -244,10 +244,10 @@
     /**
      * @see org.apache.lenya.transaction.Transactionable#lock()
      */
-    public void lock() throws RepositoryException {
+    public synchronized void lock() throws RepositoryException {
         if (isCheckedOut() && !isCheckedOutBySession()) {
             throw new RepositoryException("Cannot lock [" + this
-                    + "]: node is checked out by this session.");
+                    + "]: node is checked out by another session.");
         }
         if (getLogger().isDebugEnabled()) {
             getLogger().debug("Locking [" + this + "]");
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.