[ https://issues.apache.org/jira/browse/LUCENE-4231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir resolved LUCENE-4231. --------------------------------- Resolution: Not A Problem This is all intentional. PreFlexRW Codec is a (test-only) read-write version of Lucene3x codec to act like 3.x for tests. Its in the test-framework jar because its only for testing. > 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