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

Jar/ZipInputStream.getNextEntry() missing documentation of null return value.

XMLWordPrintable

    • b30
    • x86
    • linux, windows_2000



      Name: rmT116609 Date: 08/14/2003


      FULL PRODUCT VERSION :
      java version "1.4.2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
      Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)


      A DESCRIPTION OF THE PROBLEM :
      Although reasonably well known, the javadoc for ZipInputStream.getNextEntry and the similar methods in JarInputStream make no mention that null is returned when there is no next entry. Novices will typically try to available or use exception handling once running off the end.


      REPRODUCIBILITY :
      This bug can be reproduced always.
      (Incident Review ID: 199218)
      ======================================================================

            martin Martin Buchholz
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: