RFR: 8259865: (fs) test/jdk/java/nio/file/attribute/UserDefinedFileAttributeView/Basic.java failing on macOS 10.13

Daniel D.Daugherty dcubed at openjdk.java.net
Sun Jan 17 15:09:01 UTC 2021


On Sun, 17 Jan 2021 08:24:54 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> This is a workaround to a bug in fgetxattr(2) on macOS 10.13.6 with APFS where it doesn't return -1/ERANGE when the buffer is too small.  This bug leads to UserDefinedFileAttributeView/Basic.java failing on macOS 10.13 systems, the test is passing on 10.14 and 10.15. The change just means that FileStore.supportsFileAttributeView will return false when asked if it supports UserDefinedFileAttributeView.class.

Thumbs up!

Do you have any idea when fgetxattr() was fixed in 10.14? For example,
if it was fixed in 10.14.4, then it would be necessary to include a micro
version in the check. We may not care about that level of precision if
we presume that folks are running the version that we tested (10.14.6).

-------------

Marked as reviewed by dcubed (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/2112


More information about the nio-dev mailing list