[ 
https://issues.apache.org/jira/browse/LUCENE-4231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13417137#comment-13417137
 ] 

Uwe Schindler commented on LUCENE-4231:
---------------------------------------

Yes, lucene-test-framework depends on Llucene-core (not only for codecs, much 
more). The problem you had is that you were also mixing versions, and Lucene 
trunk (5.0) no longer has 3.x index compatibility, so the Lucene3x codec is 
missing completely, leaving the 4.0 test-framework JAR alone.
                
> Lucene-test-framework has META-INF for Codec for PreFlexRWCodec but not 
> instantiatable
> --------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4231
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4231
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: general/test
>    Affects Versions: 4.0-ALPHA
>            Reporter: David Smiley
>            Priority: Minor
>             Fix For: 4.0
>
>
> The Lucene-test-framework for 4.0-ALPHA contains 
> /META-INF/services/org.apache.lucene.codecs.Codec which I didn't expect; 
> shouldn't that only be in Lucene-core ?  Well its there, and it contains 
> org.apache.lucene.codecs.lucene3x.PreFlexRWCodec which is actually a class 
> embedded in the test framework jar file (again, unexpected).  However, this 
> class depends on the existence of Lucene3xCodec which is not part of this jar 
> file.
> I discovered this because I accidentally had the lucene-test-framework 
> 4.0-ALPHA on my classpath along with the lucene-core 5.0 but Codec would fail 
> at class initialization time because the services failed to resolve.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to