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

Improved messaging in java.util.zip exceptions

XMLWordPrintable

      JDK-8143148 is an example of where we could improve exception messaging in the java.util.zip libraries.

      java.util.zip.ZipException: invalid distance too far back
      at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:164)
              at java.io.FilterInputStream.read(FilterInputStream.java:133)

      Where possible, we should try and identify the zip/jar file where such bytes are being read from and print the file name. We should run through all java.util.zip code to see if better diagnostics can be given to end user.

      Some of this may involve sharing file names from the java layer down to the JNI layer or visa versa.

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

              Created:
              Updated: