JDK-4907266 : Jar/ZipInputStream.getNextEntry() missing documentation of null return value.
  • Type: Bug
  • Status: Resolved
  • Resolution: Fixed
  • Component: core-libs
  • Sub-Component: java.util.jar
  • Priority: P4
  • Affected Version: 1.4.2
  • OS: linux,windows_2000
  • CPU: x86
  • Submit Date: 2003-08-15
  • Updated Date: 2017-05-16
  • Resolved Date: 2003-11-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
Other
5.0 b30Resolved
Related Reports
Duplicate :  
Description

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) 
======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-beta FIXED IN: tiger-beta INTEGRATED IN: tiger-b30 tiger-beta
2004-06-14

PUBLIC COMMENTS -
2004-06-10

EVALUATION Completely agreed. Unlike exception specifications, knowledge of the null return is absolutely vital to using this method, even in "casual" mode. ###@###.### 2003-10-30
2003-10-30