-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
for: backport-to-4.2.xIssues that will be back-ported to the 4.2.x lineIssues that will be back-ported to the 4.2.x linein: infrastructuretype: bug
Milestone
Description
Method public void write(String str, int off, int len)
of org.springframework.batch.support.transaction.TransactionAwareBufferedWriter
seems to be using java.lang.StringBuilder
in wrong way:
according to documentation StringBuilder.append(java.lang.CharSequence,int,int)
third parameter is not length (as in append(char[],int,int)
) but the end index of the subsequence.
this causes invalid parts of string are being appended and causes java.lang.IndexOutOfBoundsException
when off > len
Using: spring-batch-infrastructure 4.2.4.RELEASE
mrickly, mprcptbl and slfotg
Metadata
Metadata
Assignees
Labels
for: backport-to-4.2.xIssues that will be back-ported to the 4.2.x lineIssues that will be back-ported to the 4.2.x linein: infrastructuretype: bug