Further UserDefinedFileAttributeView improvements and fixes
Alan Bateman
Alan.Bateman at oracle.com
Tue Mar 2 15:22:54 UTC 2021
On 02/03/2021 15:13, Sebastian Stenzel wrote:
> - fix leaking NativeBuffer by applying try-with-resource where applicable
> - fix UnsupportedOperationException if trying to read to a Buffer that doesn't provide a backing array
>
I can create bugs but I think it would be useful to know if this the
above are real issues or not. All usages of NativeBuffer should already
be using try-finally blocks (try-with-resources will improve this of
course), have you found cases here this isn't the case? The read method
handle both direct and heap buffers, which cases are you running into
where the backing memory is something else?
-Alan.
More information about the nio-dev
mailing list