Further UserDefinedFileAttributeView improvements and fixes
Sebastian Stenzel
sebastian.stenzel at gmail.com
Wed Mar 24 09:29:03 UTC 2021
> On 24. Mar 2021, at 09:57, Sebastian Stenzel <sebastian.stenzel at gmail.com> wrote:
>
>> On 24. Mar 2021, at 09:24, Sebastian Stenzel <sebastian.stenzel at gmail.com <mailto:sebastian.stenzel at gmail.com>> wrote:
>>
>>> On 24. Mar 2021, at 01:42, Brian Burkhalter <brian.burkhalter at oracle.com <mailto:brian.burkhalter at oracle.com>> wrote:
>>>
>>>
>>>> On Mar 10, 2021, at 9:23 AM, Sebastian Stenzel <sebastian.stenzel at gmail.com <mailto:sebastian.stenzel at gmail.com>> wrote:
>>>>
>>>> Is there no way to review increments? After all, JDK-8262958 addresses several related tasks. All we would need is a way to review individual commits instead of the PR as a whole.
>>>>
>>>> But yes, we certainly can subdivide it further: I'd need you to replace JDK-8262958 by a three more issues:
>>>>
>>>> 1. Deduplicate code around `flistxattr` calls inside of UnixUserDefinedFileAttributeView.java
>>>
>>> Perhaps JDK-8262958 can be revised to cover only this #1 as no PR has yet been filed?
>>>
>>>> 2. Fix UnsupportedOperationException when passing a ByteBuffer without a backing array to `UnixUserDefinedFileAttributeView.read(String name, ByteBuffer dst)`
>>>> 3. Use try-with-resource for all NativeBuffers within UnixUserDefinedFileAttributeView, fixing leak when opening a file for read/write attr fails (in lines [1] and [2])
>>>> 4. Reorder methods/constructor/fields in UnixUserDefinedFileAttributeView.java
For 2. - 4. I've files issues JDK-8264110, JDK-8264111, JDK-8264112
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20210324/07f8e2e1/attachment.htm>
More information about the nio-dev
mailing list