You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by mi...@apache.org on 2008/10/06 23:23:24 UTC

svn commit: r702271 - /lucene/java/trunk/src/java/org/apache/lucene/store/Directory.java

Author: mikemccand
Date: Mon Oct  6 14:23:24 2008
New Revision: 702271

URL: http://svn.apache.org/viewvc?rev=702271&view=rev
Log:
LUCENE-1412: clarify Directory.copy javadocs: the source dir cannot change while copy is running

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/store/Directory.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/store/Directory.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/store/Directory.java?rev=702271&r1=702270&r2=702271&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/store/Directory.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/store/Directory.java Mon Oct  6 14:23:24 2008
@@ -168,6 +168,11 @@
    * If a file in src already exists in dest then the
    * one in dest will be blindly overwritten.
    *
+   * <p><b>NOTE:</b> the source directory cannot change
+   * while this method is running.  Otherwise the results
+   * are undefined and you could easily hit a
+   * FileNotFoundException.
+   *
    * @param src source directory
    * @param dest destination directory
    * @param closeDirSrc if <code>true</code>, call {@link #close()} method on source directory