git: openjdk/jdk: 8313809: String template fails with java.lang.StringIndexOutOfBoundsException if last fragment is UTF16

Jim Laskey jlaskey at openjdk.org
Tue Aug 8 19:34:35 UTC 2023


Changeset: 68644411
Author:    Jim Laskey <jlaskey at openjdk.org>
Date:      2023-08-08 19:33:44 +0000
URL:       https://git.openjdk.org/jdk/commit/6864441163f946d0bec7380a2a120e31b812a6dc

8313809: String template fails with java.lang.StringIndexOutOfBoundsException if last fragment is UTF16

Reviewed-by: redestad

! src/java.base/share/classes/java/lang/invoke/StringConcatFactory.java
+ test/jdk/java/lang/template/T8313809.java



More information about the jdk-changes mailing list