Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4231

Lucene-test-framework has META-INF for Codec for PreFlexRWCodec but not instantiatable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 4.0-ALPHA
    • 4.0-BETA
    • general/test
    • None
    • New

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dsmiley David Smiley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: