RFR: 8316000: File.setExecutable silently fails if file does not exist

Brian Burkhalter bpb at openjdk.org
Mon Sep 11 22:31:15 UTC 2023


On Mon, 11 Sep 2023 22:22:47 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> On Windows, do not return `true` from the `java.io.File` methods `setReadable(boolean, boolean)` and `setExecutable(boolean, boolean)` if the file does not exist.

Unfortunately, reformatting caused there to appear to be a lot of changes in the `SetAccess` test when the principal change to the test is the first section of `doTest` for a non-existent file.

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

PR Comment: https://git.openjdk.org/jdk/pull/15673#issuecomment-1714666326


More information about the core-libs-dev mailing list