The issue occurs because FastParse returns an endIndex that exceeds the index of the last character. For example, in the following test code(endIndex) results in IndexOutOfBoundsException because endIndex == code.length.
In the following case, both endIndex and code.length are equal to 4. But this condition indicates that endIndex spans to the end of the file, which should be handled.
The issue occurs because FastParse returns an
endIndex
that exceeds the index of the last character. For example, in the following testcode(endIndex)
results inIndexOutOfBoundsException
becauseendIndex == code.length
.In the following case, both
endIndex
andcode.length
are equal to4
. But this condition indicates thatendIndex
spans to the end of the file, which should be handled.