RFR: 8365703: Refactor ZipCoder to use common JLA.uncheckedNewStringNoRepl

Roger Riggs rriggs at openjdk.org
Tue Aug 19 15:09:50 UTC 2025


Simplify JLA by changing ZipCoder to use JLA.uncheckedNewStringNoRepl(byte[] bytes, Charset cs) instead of the JLA.newStringUTF8NoRepl.
A copy of the bytes is made so it can be exclusively used to create the string. The "shared" flag is no longer needed in String.newStringUTF8NoRepl.

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

Commit messages:
 - 8365703: Refactor ZipCoder to use common JLA.uncheckedNewStringNoRepl

Changes: https://git.openjdk.org/jdk/pull/26822/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26822&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8365703
  Stats: 36 lines in 4 files changed: 12 ins; 17 del; 7 mod
  Patch: https://git.openjdk.org/jdk/pull/26822.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26822/head:pull/26822

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


More information about the core-libs-dev mailing list