-
Bug
-
Resolution: Fixed
-
P3
-
9
-
b67
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8084269 | emb-9 | Xueming Shen | P3 | Resolved | Fixed | team |
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.
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.
- backported by
-
JDK-8084269 Part of java.util.jar.JarFile spec looks confusing with references to Zip
-
- Resolved
-
- duplicates
-
JDK-8173887 ZIP word should be replaced by Jar word in JarFile.stream() documentation
-
- Closed
-
- relates to
-
JDK-8012645 Stream methods on BitSet, Random, ThreadLocalRandom, ZipFile
-
- Closed
-