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

IllegalArgumentException in ZipCoder.toString when using MS932

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u261
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      Description

      IllegalArgumentException occurs during renaming files in a zip file using
      multi-byte characters(MS932 encoding).

      java.lang.IllegalArgumentException: MALFORMED[1]
              at com.sun.nio.zipfs.ZipCoder.toString(ZipCoder.java:70)
              at com.sun.nio.zipfs.ZipCoder.toString(ZipCoder.java:78)
              at com.sun.nio.zipfs.ZipFileSystem.getString(ZipFileSystem.java:916)
              at
      com.sun.nio.zipfs.ZipFileSystem.checkParents(ZipFileSystem.java:863)
              at com.sun.nio.zipfs.ZipFileSystem.copyFile(ZipFileSystem.java:462)
              at com.sun.nio.zipfs.ZipPath.move(ZipPath.java:800)
              at
      com.sun.nio.zipfs.ZipFileSystemProvider.move(ZipFileSystemProvider.java:236)
              at java.nio.file.Files.move(Files.java:1395)
              at test.TestZipRename.renameZip(TestZipRename.java:72)
              at test.TestZipRename.main(TestZipRename.java:32)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ewhelan Evan Whelan
              Reporter:
              shadowbug Shadow Bug
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: