PathFacetCountCollector.ensureCapacity throws IndexOutOfBounds exception

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));

Environment

None

Status

Assignee

John Wang

Reporter

John Wang

Labels

None

Time tracking

1h

Components

Affects versions

3.1.0

Priority

Major