mirror of https://github.com/apache/lucene.git
tests: get JRE bug workaround working for this test again
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1306931 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b5f8deb795
commit
e49b69d459
|
@ -163,7 +163,11 @@ public class PatternAnalyzerTest extends BaseTokenStreamTestCase {
|
|||
|
||||
static boolean isJREBug7104012(Throwable t) {
|
||||
if (!(t instanceof ArrayIndexOutOfBoundsException)) {
|
||||
return false;
|
||||
// BaseTokenStreamTestCase now wraps exc in a new RuntimeException:
|
||||
t = t.getCause();
|
||||
if (!(t instanceof ArrayIndexOutOfBoundsException)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
StackTraceElement trace[] = t.getStackTrace();
|
||||
for (StackTraceElement st : trace) {
|
||||
|
|
Loading…
Reference in New Issue