RFR: 8372353: API to compute the byte length of a String encoded in a given Charset [v11]

Liam Miller-Cushon cushon at openjdk.org
Mon Jan 19 22:06:45 UTC 2026


On Mon, 19 Jan 2026 19:33:26 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> The comment wasn't questing the addition. Instead we are saying that there is no mention of coding-error actions. More specifically, I think we should insert a sentence before "The result will be the same ..." to say that the returned length takes account of the replacement of malformed-input and unmappable-character sequences with the charset's default replacement byte array.

Got it, thanks! I added a sentence, suggestions welcome if you have a better phrasing.

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

PR Comment: https://git.openjdk.org/jdk/pull/28454#issuecomment-3770259967


More information about the core-libs-dev mailing list