On Wed, 2 Dec 2026 05:29:08 GMT, Timofei Fedotov <[email protected]> wrote:

>> src/java.base/share/classes/java/util/zip/ZipInputStream.java line 532:
>> 
>>> 530:         } catch (IllegalArgumentException ex) {
>>> 531:             throw (ZipException) new ZipException(
>>> 532:                     "invalid LOC header (bad entry 
>>> name)").initCause(ex);
>> 
>> I am assuming the the IAE is due to the call to !isCENHeaderValid(name, 
>> extra, comment)?
>> 
>> If so, I don't see a reason to set the cause in the case.  It is OK, but not 
>> really needed.
>
> Done.

createZipEntry is a protected method. Only interesting for those extending 
ZipInputStream of course but I see that this method does not specify the IAE.  
Not for this PR but I think it will need to be specified exactly as specified 
in the ZipEntry constructor.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/34121#discussion_r4765998909

Reply via email to