On Tue, 20 Aug 2024 10:24:25 GMT, Eirik Bjørsnøs <eir...@openjdk.org> wrote:

> Please review this PR which suggests to deprecate the unused class 
> `java.util.zip.ZipError` for removal.
> 
> The class has been unsed by OpenJDK since  the ZIP API was rewritten from 
> native to Java in JDK 9.
> 
> I opted to not explain the reason for the deprecation in detail, but instead 
> simply point to `ZipException` as an alternative. Should more explanation be 
> desired, I could prepend that with a note saying that the class is unused 
> since JDK 9.
> 
> A CSR for this API update has been drafted, I'll update the Specification 
> section there once we reach a concensus on the deprecation note in this PR.
> 
> This deprecation was initially suggested here: 
> https://mail.openjdk.org/pipermail/core-libs-dev/2024-June/125720.html

On a corpus search, found
org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/AddJarFileToIndex.java
 references ZipError (16 usages)

sbt/internal/inc/zip/ZipCentralDir.java referenced ZipError(was based off an 
old copy of ZipFS I believe), the file does not seem to be part of the GitHub 
repository and there are 5 usages

com/aoapps/lang/Throwables.class  and com/aoindustries/lang/Throwables.class 
(clone of each other I believe) 

com/android/tools/apk/analyzer/internal/ArchiveManagerImpl. ( 1 usage)


So would be good to also alert those projects if possible

-------------

PR Comment: https://git.openjdk.org/jdk/pull/20642#issuecomment-2307668978

Reply via email to