RFR: 8253952: Refine ZipOutputStream.putNextEntry() to recalculate ZipEntry's compressed size [v4]
Volker Simonis
simonis at openjdk.java.net
Tue Oct 13 19:07:37 UTC 2020
On Tue, 13 Oct 2020 17:16:21 GMT, Lance Andersen <lancea at openjdk.org> wrote:
>> Volker Simonis has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev
>> excludes the unrelated changes brought in by the merge/rebase.
>
> test/jdk/java/util/zip/CopyZipFile.java line 149:
>
>> 147: os = new ByteArrayOutputStream();
>> 148: zos = new ZipOutputStream(os);
>> 149: ZipFile zf = new ZipFile(ZIP_FILE);
>
> Any reason to not use try with resources here as well (and below)
Done
-------------
PR: https://git.openjdk.java.net/jdk/pull/520
More information about the security-dev
mailing list