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

Part of java.util.jar.JarFile spec looks confusing with references to Zip

    XMLWordPrintable

    Details

      Backports

        Description

        The spec for some of the j.u.jar.JarFile methods refers to Zip type which looks confusing and is actually not perfectly correct.

        Examples:

        https://docs.oracle.com/javase/8/docs/api/java/util/jar/JarFile.html#entries--
        https://docs.oracle.com/javase/8/docs/api/java/util/jar/JarFile.html#stream--


        In addition after spec inheritance JarFile.stream() method has lost assertion:
         "Throws: IllegalStateException - if the zip file has been closed"
        while it actually throws ISE.


          Attachments

            Issue Links

              Activity

                People

                Assignee:
                sherman Xueming Shen
                Reporter:
                dbessono Dmitry Bessonov
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: