Skip to content

Conversation

@inponomarev
Copy link

This PR fixes TEXT-239 by correcting the exception message in
TextStringBuilder.append(char[], int, int) when startIndex is invalid.

A regression test is included to verify both invalid length and invalid startIndex cases report the correct variable.

⚠️ The same issue exists in deprecated StrBuilder implementations (commons-text / commons-lang). This PR intentionally limits the change to TextStringBuilder

Copy link
Member

@garydgregory garydgregory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @inponomarev

Thank you for this PR.

If the same error exists elsewhere, please fix it in this PR as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants