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

ExpressionValueSource has buggy rewrite method

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 8.6
    • modules/expressions
    • None
    • New

    Description

      ExpressionValuesSource does not actually rewrite itself due to small mistake in check of inner rewrites.

      changed |= (rewritten[i] == variables[i]);
      

      should be changed to

      changed |= (rewritten[i] != variables[i]);
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            emetsds Dmitry Emets
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m

                Slack

                  Issue deployment