On Mon, 21 Jul 2025 12:10:51 GMT, Volkan Yazici <vyaz...@openjdk.org> wrote:

> `NoRepl`-suffixed `String` methods denote methods that do not replace invalid 
> characters, but throw `CharacterCodingException` on encounter. This behavior 
> cannot easily be derived from the method footprints, has been a source of 
> confusion for maintainers, and is not uniformly adopted, e.g., 
> `newStringUTF8NoRepl()` and `getBytesUTF8NoRepl()` does *not* throw `CCE`. 
> This PR replaces the `NoRepl` suffix with `NoReplacement` in method names and 
> consistently uses `throws CCE` in method footprints.

This pull request has now been integrated.

Changeset: eea50fbc
Author:    Volkan Yazici <vyaz...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/eea50fbc1b24710b18eff4b59dc90dee3736cd95
Stats:     462 lines in 8 files changed: 242 ins; 122 del; 98 mod

8356439: Rename JavaLangAccess::*NoRepl methods

Reviewed-by: alanb, liach, rriggs

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

PR: https://git.openjdk.org/jdk/pull/26413

Reply via email to