lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dawid Weiss (JIRA)" <>
Subject [jira] [Commented] (LUCENE-4125) AvoidCodecs (and maybe similar nearby logic) still runs BeforeClass
Date Sat, 09 Jun 2012 18:19:42 GMT


Dawid Weiss commented on LUCENE-4125:

Hmm... I get this when I specify -Dtests.codec=Lucene3x (trunk):

  [junit4] ERROR   0.00s | TestBackwardsCompatibility (suite)
   [junit4]    > Throwable #1: java.lang.IllegalArgumentException: A SPI class of type
org.apache.lucene.codecs.Codec with name 'Lucene3x' does not exist. You need to add the corresponding
JAR file supporting this SPI to your classpath.The current classpath supports the following
names: [Lucene40, SimpleText, Appending]

Do I need to uncomment that code block that initializes Lucene3x?
> AvoidCodecs (and maybe similar nearby logic) still runs BeforeClass
> -------------------------------------------------------------------
>                 Key: LUCENE-4125
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>    Affects Versions: 4.0
>            Reporter: Robert Muir
> ant test-core -Dtestcase=TestBackwardsCompatibility -Dtests.codec=Lucene3x
> This test isnt allowed to run Lucene3x, but the assumption stuff is per-method, it still
loads things up in beforeClass, meaning we checkindex() real 3.x segments with the "fake"
3.x impersonator and it looks like corruption, which is really scary if you are just trying
to run all the tests with -Dtests.codec=Lucene3x to verify a change doesnt break backwards

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message