Thanks Lance, I have filed the following enhancement request to track this:
https://bugs.openjdk.org/browse/JDK-8336843 Eirik. On Sun, Jun 30, 2024 at 2:54 PM Lance Andersen <lance.ander...@oracle.com> wrote: > Hi Eirik, > > The removal of ZipError from ZipFile/ZipFileSystem/ZipFileSystemProvider > occurred via 8145260 and 8037394 for JDK 9 > > The test should also be re-written at this point > > Jai or I can make a pass to see if there are any external usages via a > corpus search but I tend to doubt it > > On Jun 30, 2024, at 3:20 AM, Eirik Bjørsnøs <eir...@gmail.com> wrote: > > Hi! > > The java.util.zip.ZipError class seems unused in OpenJDK. I assume this is > legacy from the native ZIP implementation in Java 8. > > This exception class extends InternalError and seems to have been added in > Java 6 to help compatibility with existing code catching InternalError > (JDK-4615343) > > This change also introduced the TestZipError test, which verified that > ZipError was thrown while enumerating a ZIP file which was changed after > being opened. The reimplementation of the ZIP implementation to Java > (JDK-8145260) updated this test to expect a ZipException instead of the > ZipError. > > Given that this class has now fallen out of use in OpenJDK, should we: > > 1: Deprecate it > 2: Deprecate it for removal > 3: Do nothing, keeping it around has a low cost > 4: Something else > > It would also be useful if someone with access to a large code corpus > could search for usages of this class so we could assess compatibility > concerns of removing it. > > Thanks, > Eirik. > > > [image: oracle_sig_logo.gif] > > > > > > > Lance Andersen | Principal Member of Technical Staff | +1.781.442.2037 > Oracle Java Engineering > 1 Network Drive > Burlington, MA 01803 > lance.ander...@oracle.com > > > >