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

Float/DoublePoint should not recommend using Math.nextUp/nextDown for exclusive ranges

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 6.4, 7.0
    • None
    • None
    • New

    Description

      Float/Double points are supposed to be consistent with Double/Float.compare, so +0 is supposed to compare greater than -0. However Math.nextUp/nextDown is not consistent with Double/Float.compare and returns MIN_VALUE for nextUp(-0).

      Attachments

        1. LUCENE-7594.patch
          8 kB
          Adrien Grand

        Activity

          People

            Unassigned Unassigned
            jpountz Adrien Grand
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment