Uploaded image for project: 'Bobo'
  1. BOBO-109

PathFacetCountCollector.ensureCapacity throws IndexOutOfBounds exception

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects versions: 3.1.0
    • Fix versions: None
    • Components: None
    • Labels:
    • Sprint:

      Description

      The System.arraycopy calls in the PathFacetCountCollector.ensureCapacity method is wrong. The way it is today, it will not copy the source array in the destination array at all and it will throw an IndexOutOfBounds all the time when increasing the size of the array

      It reads:
      System.arraycopy(oldData, 0, _stringData, Math.min(oldData.length, newCapacity), newCapacity);

      It should read:
      System.arraycopy(oldData, 0, _stringData, 0, Math.min(oldData.length, newCapacity));

        Attachments

          Activity

            People

            • Assignee:
              jwang John Wang
              Reporter:
              frommi112 Francois Rochette
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified