RFR 8231451: ZipFileInputStream::skip handling of negative values with STORED entries

Alan Bateman Alan.Bateman at oracle.com
Wed Oct 23 20:58:01 UTC 2019


On 23/10/2019 19:06, Lance Andersen wrote:
>
>> On Oct 22, 2019, at 2:37 PM, Alan Bateman <Alan.Bateman at oracle.com 
>> <mailto:Alan.Bateman at oracle.com>> wrote:
>>
>> I assume skip(Long.MAX_VALUE) will cause n+pos to overflow and it 
>> will skip backwards rather than to the end.
>
> That is correct.  If you prefer it to skip to the end, I will adjust 
> accordingly.
It would be surprising to specify a positive value and have it skip 
backwards so I think this should be fixed.

-Alan


More information about the core-libs-dev mailing list