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

additional safety in Tokenizer state machine

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.6, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

         * <b>NOTE:</b> 
         * The default implementation closes the input Reader, so
         * be sure to call <code>super.close()</code> when overriding this method.
         */
        @Override
        public void close() throws IOException {
      

      We can add a simple check for this easily now in setReader. I found a few bugs, and fixed all except TrieTokenizer in solr (I am lost here... somewhere i have a patch to remove this thing).

        Attachments

        1. LUCENE-5240.patch
          22 kB
          Robert Muir
        2. LUCENE-5240.patch
          21 kB
          Robert Muir
        3. LUCENE-5240.patch
          8 kB
          Robert Muir

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rcmuir Robert Muir
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: