RFR: 8321156: Improve the handling of invalid UTF-8 byte sequences for ZipInputStream::getNextEntry and ZipFile::getComment [v2]

Lance Andersen lancea at openjdk.org
Sun Feb 25 14:17:06 UTC 2024


On Sun, 25 Feb 2024 12:20:36 GMT, Eirik Bjørsnøs <eirbjo at openjdk.org> wrote:

>> Lance Andersen has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Updates based on 1st round of feedback
>
> src/java.base/share/classes/java/util/zip/ZipInputStream.java line 524:
> 
>> 522:                     : zc.toString(b, len);
>> 523:         } catch(Exception ex) {
>> 524:             throw  (ZipException) new ZipException(
> 
> Whitespace nit:
> 
> Suggestion:
> 
>         } catch (Exception ex) {
>             throw (ZipException) new ZipException(

fixed

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17995#discussion_r1501822894


More information about the core-libs-dev mailing list