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

Shaojin Wen duke at openjdk.org
Wed Mar 6 05:05:49 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.

@JimLaskey could you please help review the code? Thank you.

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

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


More information about the core-libs-dev mailing list