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

sgehwolf at redhat.com sgehwolf at redhat.com
Wed Jan 8 18:50:00 UTC 2020


Changeset: 6f7954907722
Author:    sgehwolf
Date:      2019-10-08 15:30 +0200
URL:       https://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/rev/6f7954907722

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/share/classes/java/nio/file/Files.java



More information about the jdk8u-dev-changes mailing list