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

RFE: More specific error message when a jar or zip is corrupt

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 1.4.2
    • core-libs
    • Cause Known
    • x86
    • windows_xp

      Name: jl125535 Date: 09/22/2004


      A DESCRIPTION OF THE REQUEST :
      When java.util.zip.ZipFile parses a corrupt jar or zip file, a typical result is an error message like the one below. It would be more helpful if the error message stated that the jar or zip file appears to be corrupt.

      <ERROR_MESSAGE>
      An exception has occurred in the compiler (1.5.0-rc). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
      java.lang.InternalError: jzentry == 0,
       jzfile = 74342920,
       total = 212,
       name = Q:\projects\3rdparty\antlr-2.7.4\antlr.jar,
       i = 1,
       message = couldn't read CEN extra
      at java.util.zip.ZipFile$3.nextElement(ZipFile.java:427)
      at java.util.zip.ZipFile$3.nextElement(ZipFile.java:413)
      at com.sun.tools.javac.jvm.ClassReader.openArchive(ClassReader.java:1442)
      ...
      </ERROR_MESSAGE>


      JUSTIFICATION :
      The current error message implies that the best course of action is to submit a bug report. But as evidenced by the Evaluation of http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4977607, it is faster and more effective to replace the offending file.
      (Incident Review ID: 311444)
      ======================================================================

            Unassigned Unassigned
            jleesunw Jon Lee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: