On Tue, 3 Sep 2024 15:56:36 GMT, Alan Bateman <[email protected]> wrote:
> Can you check the tests in java/nio/file. I think they may skip if
> Files.createSymbolicLink fails, which it might do some Windows test machines
> but not others.
>From `Links.java`:
// Check if sym links are supported
try {
Files.createSymbolicLink(link, Paths.get("foo"));
Files.delete(link);
} catch (UnsupportedOperationException x) {
// sym links not supported
return;
} catch (IOException x) {
// probably insufficient privileges to create sym links (Windows)
return;
}
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20801#issuecomment-2326897717