On Wed, 10 Nov 2021 10:36:37 GMT, Michael Bien <d...@openjdk.java.net> wrote:
> it should compile into invokedynamic makeConcatWithConstants on later JDKs As far as I understand `StringConcatFactory` is not available on bootstrap stage and `StringBuilder` is used instead. See https://github.com/openjdk/jdk/pull/3464#issuecomment-818827786 and https://github.com/openjdk/jdk/pull/4507#issuecomment-873896268 (pay attention to class loading order - `j.i.File` is loaded before `StringConcatFactory` ------------- PR: https://git.openjdk.java.net/jdk/pull/6326