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

XMLWordPrintable

        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.


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

                Created:
                Updated:
                Resolved: