<Sound Dev> [10] Review Request: 8178401 Various audio files writers do not close file streams properly
Dan Rollo
danrollo at gmail.com
Sat Dec 9 05:47:24 UTC 2017
Hi Sergey,
+1 ! Very happy to see “final” and “closable” used. I very much like that pattern.
Dan
> On Dec 8, 2017, at 8:19 PM, Sergey Bylokhov <Sergey.Bylokhov at oracle.com> wrote:
>
> Hello, Audio Guru.
> Please review the fix for jdk10.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8178401
> Webrev can be found at: http://cr.openjdk.java.net/~serb/8178401/webrev.01
>
> Description:
> Most of our audio file writers can try to convert the saved audio stream to the format which is supported by the current writer, for example it can convert big<->little-endian, signed/unsigned, etc. Because of unsupported conversion (or because of some other reasons) we can get some exceptions. In this case we have to close all streams, because such streams can lock the file on Windows.
>
> This particular bug is responsible for a grown number of temporary files on our automated test systems and causes some intermittent failures.
>
> --
> Best regards, Sergey.
More information about the sound-dev
mailing list