[OpenJDK 2D-Dev] RFR: 8080272 Refactor I/O stream copying to use java.io.InputStream.transferTo

Andrey Turbanov github.com+741251+turbanoff at openjdk.java.net
Sun Dec 20 20:25:52 UTC 2020

On Sun, 20 Dec 2020 19:43:21 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> One or two of the sources changes should probably uses Files.copy, e.g. ZipPath, sjavac/CopyFile.java.

Good idea! Replaced in few places. But not in ZipPath: it's actually implementation of underlying call from Files.copy: `jdk.nio.zipfs.ZipFileSystemProvider#copy`. So, `Files.copy` call will be recursive.


PR: https://git.openjdk.java.net/jdk/pull/1853

More information about the 2d-dev mailing list