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

(zipfs) Include additional information in some ZipException messages

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • core-libs
    • None

      Extend some ZipException messages to take advantage of the jdk.includeInExceptions=jar security property and print the file name where possible.

      example:
      java.util.zip.ZipException: ZIP file can't be opened as a file system because an entry has a '.' or '..' element in its name
              at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.initCEN(ZipFileSystem.java:1589)
              at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.<init>(ZipFileSystem.java:179)
              at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.getZipFileSystem(ZipFileSystemProvider.java:142)
              at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.newFileSystem(ZipFileSystemProvider.java:137)
              at java.base/java.nio.file.FileSystems.newFileSystem(FileSystems.java:528)
              at java.base/java.nio.file.FileSystems.newFileSystem(FileSystems.java:440)

            coffeys Sean Coffey
            coffeys Sean Coffey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: