RFR: 8310901: Convert String::newStringNoRepl with Latin-1 to String::newStringLatin1NoRepl [v8]
Glavo
duke at openjdk.org
Mon Nov 20 16:22:54 UTC 2023
> Added a new method `newStringLatin1NoRepl` to the `JavaLangAccess`.
>
> Reasons:
>
> * Most use cases of `newStringNoRepl` use `ISO_8859_1` as the charset, creating a new shortcut can make writing shorter;
> * Since all possible values of `byte` are legal Latin-1 characters, `newStringLatin1NoRepl` **will not throw `CharacterCodingException`**, so users can make the compiler happy without using useless try-catch statements.
Glavo has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 11 additional commits since the last revision:
- Merge branch 'openjdk:master' into latin1-no-repl
- Merge branch 'openjdk:master' into latin1-no-repl
- Use newStringLatin1NoRepl in UUID
- Merge branch 'openjdk:master' into latin1-no-repl
- Merge branch 'openjdk:master' into latin1-no-repl
- Merge branch 'openjdk:master' into latin1-no-repl
- update javadoc
- clean newStringNoRepl1
- clean newStringNoRepl1
- Rename jla to JLA
- ... and 1 more: https://git.openjdk.org/jdk/compare/40b5fa87...3898c8e5
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/14655/files
- new: https://git.openjdk.org/jdk/pull/14655/files/e92a877c..3898c8e5
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=14655&range=07
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=14655&range=06-07
Stats: 678717 lines in 2808 files changed: 115107 ins; 487865 del; 75745 mod
Patch: https://git.openjdk.org/jdk/pull/14655.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/14655/head:pull/14655
PR: https://git.openjdk.org/jdk/pull/14655
More information about the security-dev
mailing list