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

IllegalArgumentException in ZipCoder.toString when using MS932

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • 8u261
    • core-libs

      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)

            ewhelan Evan Whelan (Inactive)
            shadowbug Shadow Bug
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: