RFR: 8365703: Refactor ZipCoder to use common JLA.uncheckedNewStringNoRepl [v2]

Roger Riggs rriggs at openjdk.org
Tue Aug 19 17:57:20 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.

Roger Riggs has updated the pull request incrementally with one additional commit since the last revision:

  Flesh out javadoc in src/java.base/share/classes/java/lang/String.java
  
  Co-authored-by: Volkan Yazıcı <volkan.yazici at oracle.com>

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/26822/files
  - new: https://git.openjdk.org/jdk/pull/26822/files/3ec3f69d..ef153862

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=26822&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=26822&range=00-01

  Stats: 12 lines in 1 file changed: 8 ins; 0 del; 4 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