RFR: 8357685: Change the type of Integer::digits from char[] to byte[] [v2]
Raffaello Giulietti
rgiulietti at openjdk.org
Sat May 24 11:33:50 UTC 2025
On Sat, 24 May 2025 07:19:24 GMT, Shaojin Wen <swen at openjdk.org> wrote:
>> Integer::digits type can use byte[] instead of char[], which can reduce the conversion from char to byte in the process of Integer.toString. Using byte[] can also save memory.
>
> Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision:
>
> stable
@liach Chen, you were [concerned](https://mail.openjdk.org/pipermail/core-libs-dev/2025-May/146655.html) that the fact that StringUTF16.putChar does sign extension might introduce errors.
I don't think there's any issue here, as all bytes are just ASCII.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25426#issuecomment-2906784048
More information about the core-libs-dev
mailing list