Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8365703

Refactor ZipCoder to use common JLA.uncheckedNewStringNoRepl

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 26
    • 26
    • core-libs

      JavaLangAccess has a method (newStringUTF8NoRepl) to create a String from UTF8 that is solely used by ZipCoder. The buffer from ZipCoder should not be shared and added an additional argument to String.newStringUTF8NoRepl.
      If ZipCoder copies the byte array it can call JLA.uncheckedNewStringNoRepl(byte[] bytes, Charset cs)
      and the String code can be simplified.

            rriggs Roger Riggs
            rriggs Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: