Refactor ZipCoder to use common JLA.uncheckedNewStringNoRepl

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 26
    • Affects Version/s: 26
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: