hg: jdk/sandbox: 8232003: (fs) Files.write can leak file descriptor in the exception case

chris.hegarty at oracle.com chris.hegarty at oracle.com
Wed Oct 9 12:00:23 UTC 2019


Changeset: 8f849d3ec1e5
Author:    sgehwolf
Date:      2019-10-08 15:30 +0200
URL:       https://hg.openjdk.java.net/jdk/sandbox/rev/8f849d3ec1e5

8232003: (fs) Files.write can leak file descriptor in the exception case
Summary: Be sure to close the leaked OutputStream in all cases
Reviewed-by: alanb, bpb, clanger

! src/java.base/share/classes/java/nio/file/Files.java



More information about the jdk-sandbox-changes mailing list