lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r766440 - /lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexWriter.java
Date Sun, 19 Apr 2009 09:38:27 GMT
Author: mikemccand
Date: Sun Apr 19 09:38:26 2009
New Revision: 766440

URL: http://svn.apache.org/viewvc?rev=766440&view=rev
Log:
LUCENE-1573: add missing synchronized in test case

Modified:
    lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexWriter.java

Modified: lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexWriter.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexWriter.java?rev=766440&r1=766439&r2=766440&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexWriter.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexWriter.java Sun Apr 19 09:38:26
2009
@@ -4350,7 +4350,9 @@
       }
     }
     t.finish = true;
-    t.interrupt();
+    synchronized(t) {
+      t.interrupt();
+    }
     t.join();
     assertFalse(t.failed);
   }



Mime
View raw message