JDK-8339104 : Release Note: java.util.zip.ZipError Is Deprecated for Removal
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.util.jar
  • Affected Version: 24
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2024-08-27
  • Updated: 2024-10-25
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
24Unresolved
Description
`java.util.zip.ZipError` has been deprecated for removal. This error class has been obsolete for many releases and has not been used by the reference implementation since Java 8.

Any existing code that used to throw `java.util.zip.ZipError` should consider throwing `java.util.zip.ZipException` instead. Code needing to catch this error when running on releases prior to Java 9 may be updated to catch the parent `java.lang.InternalError` class instead. 
Comments
> 'ZipError' is used with the package name in the start the the sentence, so while expanding it again probably does not hurt, it is maybe not super helpful either. I agree. I missed that, so reverting that second sentence to just use `ZipError` should be fine. > To be consistent, we should probably expand InternalError as well. Yes, that would be right thing to do (I see you did it already).
08-10-2024

Jai, 'ZipError' is used with the package name in the start the the sentence, so while expanding it again probably does not hurt, it is maybe not super helpful either. Expanding ZipException seems like an improvement. To be consistent, we should probably expand InternalError as well. wdyt?
08-10-2024

Hello Eirik, there was a typo in the title of the release note, which I've updated. I did a minor update to the text of the release note too, but I did that before I noticed that Lance and Chen had approved the text. If you prefer the older version of the release note text, please feel free to revert my change.
08-10-2024

Release note looks good.
07-10-2024

I think the RN is OK
07-10-2024