RFR: 8326617: String Template FMT removes unnecessary int to long type cast

Chen Liang liach at openjdk.org
Thu Apr 11 14:48:44 UTC 2024


On Mon, 2 Oct 2023 23:05:29 GMT, Shaojin Wen <duke at openjdk.org> wrote:

> In the current version, FMT."v =%d{1}" will call the StringConcatHelper.prepend(long/byte[]/long) method, which should behave the same as STR."v ={1}". Call StringConcatHelper.prepend(long/byte[]/int), should not convert int to long
> 
> Please review and don't hesitate to critique my approach and patch.

See #18688, String template is being removed for now.

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

PR Comment: https://git.openjdk.org/jdk/pull/16017#issuecomment-2049863809


More information about the core-libs-dev mailing list