From 58f2f88254f1493ffc2c3b946cfd1a00cc63670f Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Sat, 2 Feb 2013 15:32:09 +0000 Subject: [PATCH] Fix compilation under Java 6. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1441764 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/lucene/index/BaseTermVectorsFormatTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/test-framework/src/java/org/apache/lucene/index/BaseTermVectorsFormatTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/index/BaseTermVectorsFormatTestCase.java index 565aa150c05..c76b9442075 100644 --- a/lucene/test-framework/src/java/org/apache/lucene/index/BaseTermVectorsFormatTestCase.java +++ b/lucene/test-framework/src/java/org/apache/lucene/index/BaseTermVectorsFormatTestCase.java @@ -722,7 +722,7 @@ public abstract class BaseTermVectorsFormatTestCase extends LuceneTestCase { writer.close(); dir.close(); if (exception.get() != null) { - throw new AssertionError("One thread threw an exception", exception.get()); + throw new RuntimeException("One thread threw an exception", exception.get()); } } }