RFR: 8326617: String Template FMT removes unnecessary int to long type cast
Shaojin Wen
duke at openjdk.org
Sat Feb 24 17:50:17 UTC 2024
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.
-------------
Commit messages:
- Merge remote-tracking branch 'upstream/master' into st_prepend_int
- fix format %d int call prepend(long, byte[], long), should be call prepend(long, byte[], int)
Changes: https://git.openjdk.org/jdk/pull/16017/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=16017&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8326617
Stats: 7 lines in 1 file changed: 4 ins; 2 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/16017.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/16017/head:pull/16017
PR: https://git.openjdk.org/jdk/pull/16017
More information about the core-libs-dev
mailing list