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

java.util.jar.JarFile.getJarEntry(), getManifest() spec omits IllegalStateExc

XMLWordPrintable

    • sparc
    • solaris_2.5



      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.

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

            shommel Scott Hommel (Inactive)
            ksoshals Kirill Soshalskiy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: