RFR: 8276926: Use String.valueOf() when initializing File.separator and File.pathSeparator
Сергей Цыпанов
duke at openjdk.java.net
Wed Nov 10 11:42:40 UTC 2021
On Wed, 10 Nov 2021 10:36:37 GMT, Michael Bien <duke at 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
More information about the core-libs-dev
mailing list