JDK-4202025 : java.util.jar.JarFile.getJarEntry(), getManifest() spec omits IllegalStateExc
  • Type: Bug
  • Component: docs
  • Sub-Component: guides
  • Affected Version: 1.2.0
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.5
  • CPU: sparc
  • Submitted: 1999-01-11
  • Updated: 2004-03-29
  • Resolved: 2003-09-05
Related Reports
Duplicate :  
Description

Name: ksC84122			Date: 01/11/99


JavaDoc for java.util.jar.JarFile.getJarEntry(String name), getManifest()
does not say that these methods throw IllegalStateException if the jar file
has been closed. These methods do throw IllegalStateException in a same way that
java.util.jar.getEntry(String name), entries(), getInputStream(ZipEntry ze) do. 
The JavaDoc for getEntry(String name), entries(), getInputStream(ZipEntry ze) 
(in java.util.zip.ZipFile) indicates that these methods throw IllegalStateException 
if the zip file has been closed, but the JavaDoc (in java.util.jar.JarFile) for 
getJarEntry(String name), getManifest() stays silent about throwing IllegalStateException.

======================================================================

Comments
EVALUATION Name: dk30142 Date: 06/02/2003 Accepted ====================================================================== Name: dk30142 Date: 06/09/2003 Accepted ====================================================================== This issue will be fixed as part of 4910572. Closing as duplicate. ###@###.### 2003-09-05
05-09-2003