Integrated: 8356439: Rename JavaLangAccess::*NoRepl methods
Volkan Yazici
vyazici at openjdk.org
Tue Sep 2 12:46:02 UTC 2025
On Mon, 21 Jul 2025 12:10:51 GMT, Volkan Yazici <vyazici at 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 <vyazici at 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
More information about the security-dev
mailing list