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

ZipFile InputStream is bugged on reading large entries

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 1.3.0
    • core-libs



      Name: skT45625 Date: 03/06/2000


      Unavailable from my desktop (this only happens on my laptop) but it is JDK 1.3
      beta1.

      Read a large file from a zip file, in this case I was reading
      java/awt/Component.class from the classes.zip file contained in JDK 1.0.2 for
      my own VM project. THe operation worked fine under 1.1 but under 1.3rc1 (I did
      not check 1.2 or 1.3rc1) behaves incorrectly, e.g:

      InputStream input = zipFile.getInputStream(entry);
      byte b[] = new byte[input.available]; input.read(b);

      will bug out for a large file leaving only zeros where really data should be at
      the end of a file.
      (Review ID: 102032)
      ======================================================================

            martin Martin Buchholz
            skondamasunw Suresh Kondamareddy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: