diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterWithThreads.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterWithThreads.java index 4c4141a321f..8f51dd1143a 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterWithThreads.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterWithThreads.java @@ -116,7 +116,7 @@ public class TestIndexWriterWithThreads extends LuceneTestCase { } } catch ( @SuppressWarnings("unused") - AlreadyClosedException ace) { + IllegalStateException ise) { // OK: abort closes the writer break; } catch (Throwable t) {