-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
b19
The use of the class java.util.zip.ZipError was removed from ZipFile/ZipFileSystem/ZipFileSystemProvider in JDK 9 via JDK-8145260 and
JDK-8037394. However, the exception class itself has been kept around since then.
Since the class has been unused by the JDK for this long, we should consider marking it deprecated for removal to allow it being cleaned up.
Also, the TestZipError test is unfortunately named, since it no longer tests that ZipError is thrown, but instead ZipException.
See discussion here: https://mail.openjdk.org/pipermail/core-libs-dev/2024-June/125720.html
Since the class has been unused by the JDK for this long, we should consider marking it deprecated for removal to allow it being cleaned up.
Also, the TestZipError test is unfortunately named, since it no longer tests that ZipError is thrown, but instead ZipException.
See discussion here: https://mail.openjdk.org/pipermail/core-libs-dev/2024-June/125720.html
- csr for
-
JDK-8338663 Deprecate java.util.zip.ZipError for removal
- Closed
- relates to
-
JDK-8037394 ZipFileSystem leaks file descriptor when file is not a valid zip file
- Closed
-
JDK-8145260 To bring j.u.z.ZipFile's native implementation to Java to remove the expensive jni cost and mmap crash risk [2]
- Resolved
-
JDK-8338729 Retire the test jdk/java/util/zip/TestZipError.java
- Resolved
- links to
-
Commit(master) openjdk/jdk/7a1e832e
-
Review(master) openjdk/jdk/20642
(1 links to)