RFR: 8372353: API to compute the byte length of a String encoded in a given Charset [v13]
Liam Miller-Cushon
cushon at openjdk.org
Tue Jan 20 10:20:14 UTC 2026
On Tue, 20 Jan 2026 10:09:39 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Liam Miller-Cushon has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Add a note about malformed-input and unmappable-character sequences
>
> src/java.base/share/classes/java/lang/String.java line 2112:
>
>> 2110: * sequences with the charset's default replacement byte array.
>> 2111: *
>> 2112: * <p>The result will be the same value as {@link #getBytes(Charset) getBytes(cs).length}.
>
> The wording is good. As "The result will be the same ..." follows the previous sentence then I think you can drop the paragraph tag so that it goes into the same paragraph.
Thanks, done
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28454#discussion_r2707682613
More information about the core-libs-dev
mailing list