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

Lance Andersen lancea at openjdk.org
Tue Aug 19 18:28:38 UTC 2025


On Tue, 19 Aug 2025 17:57:20 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>> 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>

Marked as reviewed by lancea (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/26822#pullrequestreview-3133382802


More information about the core-libs-dev mailing list