Thread.getId() is a java 1.5 feature. Change to Thread.getName().

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@662545 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Busch 2008-06-02 20:21:38 +00:00
parent 1979d75605
commit 455afb322d
1 changed files with 1 additions and 1 deletions

View File

@ -757,7 +757,7 @@ public class TestIndexReaderReopen extends LuceneTestCase {
try {
threads[i].join();
if (threads[i].error != null) {
String msg = "Error occurred in thread " + threads[i].getId() + ":\n" + threads[i].error.getMessage();
String msg = "Error occurred in thread " + threads[i].getName() + ":\n" + threads[i].error.getMessage();
fail(msg);
}
} catch (InterruptedException e) {}