JDK-8336843 : Deprecate java.util.zip.ZipError for removal
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util.jar
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-07-19
  • Updated: 2024-10-14
  • Resolved: 2024-10-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 24
24 b19Fixed
Related Reports
CSR :  
Relates :  
Relates :  
Relates :  
Sub Tasks
JDK-8339104 :  
Description
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
Comments
Changeset: 7a1e832e Branch: master Author: Eirik Bjørsnøs <eirbjo@openjdk.org> Date: 2024-10-08 10:08:31 +0000 URL: https://git.openjdk.org/jdk/commit/7a1e832ea997f9984eb5fc18474a8f1650ddb1bf
08-10-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/20642 Date: 2024-08-20 10:24:25 +0000
23-08-2024