Lucene - Core
  1. Lucene - Core
  2. LUCENE-4865

BytesRefArray#append returns wrong index (off by one)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 4.2
    • Fix Version/s: 4.3, 4.2.1, 5.0
    • Component/s: modules/other
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      pretty simple thing the returned index is incremented before returned. I will add a test and upload a patch

      1. LUCENE-4865.patch
        5 kB
        Simon Willnauer

        Activity

        Hide
        Simon Willnauer added a comment -

        here is a patch. I also renamed ord to index since it's really an index and not an ordinal.

        Show
        Simon Willnauer added a comment - here is a patch. I also renamed ord to index since it's really an index and not an ordinal.
        Hide
        Commit Tag Bot added a comment -

        [trunk commit] Simon Willnauer
        http://svn.apache.org/viewvc?view=revision&revision=1459051

        LUCENE-4865: BytesRefArray#append returns wrong index

        Show
        Commit Tag Bot added a comment - [trunk commit] Simon Willnauer http://svn.apache.org/viewvc?view=revision&revision=1459051 LUCENE-4865 : BytesRefArray#append returns wrong index
        Hide
        Commit Tag Bot added a comment -

        [branch_4x commit] Simon Willnauer
        http://svn.apache.org/viewvc?view=revision&revision=1459052

        LUCENE-4865: BytesRefArray#append returns wrong index

        Show
        Commit Tag Bot added a comment - [branch_4x commit] Simon Willnauer http://svn.apache.org/viewvc?view=revision&revision=1459052 LUCENE-4865 : BytesRefArray#append returns wrong index
        Hide
        Uwe Schindler added a comment -

        Closed after release.

        Show
        Uwe Schindler added a comment - Closed after release.

          People

          • Assignee:
            Simon Willnauer
            Reporter:
            Simon Willnauer
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development