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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: 4.0-ALPHA
    • Fix Version/s: 4.0-BETA
    • Component/s: general/test
    • Labels:
      None
    • Lucene Fields:
      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

            • Assignee:
              Unassigned
              Reporter:
              dsmiley David Smiley
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: