RFR: 8356439: Rename JavaLangAccess::*NoRepl methods [v9]
Volkan Yazici
vyazici at openjdk.org
Thu Aug 28 19:25:10 UTC 2025
> `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.
Volkan Yazici has updated the pull request incrementally with two additional commits since the last revision:
- Rename `NoReplacement` suffix to `OrThrow`
- Simplify `encodeWithEncoder` and trim long lines
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/26413/files
- new: https://git.openjdk.org/jdk/pull/26413/files/fa46a81b..14c0391a
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=26413&range=08
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=26413&range=07-08
Stats: 223 lines in 8 files changed: 93 ins; 94 del; 36 mod
Patch: https://git.openjdk.org/jdk/pull/26413.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/26413/head:pull/26413
PR: https://git.openjdk.org/jdk/pull/26413
More information about the security-dev
mailing list