On Wed, 3 Mar 2021 16:43:02 GMT, Jan Lahoda <jlah...@openjdk.org> wrote:

> `reflowTillNow` will strip trailing spaces, but then `reflownTo` may point 
> after the full content of `result`. Need to fix `reflownTo` to not point 
> after the full content of `result`, otherwise a 
> `StringIndexOutOfBoundsException` may occur.

This pull request has now been integrated.

Changeset: 94f26e4d
Author:    Jan Lahoda <jlah...@openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/94f26e4d
Stats:     16 lines in 2 files changed: 13 ins; 0 del; 3 mod

8261450: JShell crashes with SIOOBE in tab completion

Reviewed-by: vromero

-------------

PR: https://git.openjdk.java.net/jdk/pull/2812

Reply via email to