RFR: 8253952: Refine ZipOutputStream.putNextEntry() to recalculate ZipEntry's compressed size [v6]
Volker Simonis
simonis at openjdk.java.net
Wed Oct 14 10:54:32 UTC 2020
On Wed, 14 Oct 2020 10:48:55 GMT, Volker Simonis <simonis at openjdk.org> wrote:
>> test/jdk/java/util/zip/CopyZipFile.java line 104:
>>
>>> 102: // all these fields set to '-1'.
>>> 103: InputStream is = new FileInputStream(ZIP_FILE);
>>> 104: ZipInputStream zis = new ZipInputStream(is);
>>
>> Any reason not to include the the ZipInputStream and InputStream in the try with Resources and the ZipFile below? I
>> know these are nits, but just curious or was it an over site?
>> I think we are good otherwise
>
> No other reason except my laziness :)
fixed now
-------------
PR: https://git.openjdk.java.net/jdk/pull/520
More information about the security-dev
mailing list