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

AttributeSource.addAttribute should only accept interfaces, the missing test leads to problems with Token.TOKEN_ATTRIBUTE_FACTORY

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.9, 2.9.1, 3.0
    • 3.0
    • None
    • None
    • New

    Description

      This is a blocker, because you can call addAttribute(Token.class) without getting an error message.

      I will commit the fix and restart the vote for 3.0. This also applies to 2.9, but there is no Token Attribute Factory. But I will merge to 2.9, too, if a 2.9.2 comes.

      Attachments

        1. LUCENE-2088.patch
          2 kB
          Uwe Schindler
        2. LUCENE-2088-test.patch
          1.0 kB
          Uwe Schindler

        Activity

          People

            uschindler Uwe Schindler
            uschindler Uwe Schindler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: