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

UnescapedCharSequence Bugs

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 7.1
    • None
    • core/queryparser
    • None
    • New

    Description

      There are a couple of issues with UnescapedCharSequence:

      1. The private constructor is not used anywhere (and if it were, it would throw exceptions)
      2. The ToEscapedString() overload has an invalid condition that will only evaluate to true if the string has a length of 0.

      There are no tests for UnescapedCharSequence so these issues have gone unnoticed for quite some time.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nightowl888 Shad Storhaug
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: