[OpenJDK 2D-Dev] RFR: 8261200: Some code in the ICC_Profile may not close file streams properly
Alexander Zvegintsev
azvegint at openjdk.java.net
Sat Feb 6 01:31:42 UTC 2021
On Fri, 5 Feb 2021 04:05:12 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
> In a few places where we use streams the try/with/res blocks are added.
test/jdk/java/awt/color/ICC_Profile/WriteProfileToFile.java line 43:
> 41: testViaDataArray(gold);
> 42: testViaFile(gold);
> 43: testViaStream(gold);
Are we OK with not calling `testViaFile()` and `testViaStream` in case of `testViaDataArray()` failure?
-------------
PR: https://git.openjdk.java.net/jdk/pull/2421
More information about the 2d-dev
mailing list