RFR: 8365719: Refactor uses of JLA.uncheckedNewStringNoRepl

Roger Riggs rriggs at openjdk.org
Mon Aug 18 21:44:24 UTC 2025


Refactor uses of JLAuncheckedNewStringNoRepl(byte[], ISO_8859_1) adding JLA.uncheckedNewStringWithLatin1Bytes(byte[]).
There is no decoding needed, and no exceptions expected or thrown when creating the string from the supplied latin1 bytes. 
If COMPACT_STRINGS is false, the bytes are inflated to UTF16.

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

Commit messages:
 - 8365719: Refactor uses of JLA.uncheckedNewStringNoRepl

Changes: https://git.openjdk.org/jdk/pull/26831/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26831&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8365719
  Stats: 81 lines in 7 files changed: 32 ins; 40 del; 9 mod
  Patch: https://git.openjdk.org/jdk/pull/26831.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26831/head:pull/26831

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


More information about the core-libs-dev mailing list