RFR: 8355954: File.delete removes read-only files (win)
Jason Mehrens
duke at openjdk.org
Thu May 1 15:05:48 UTC 2025
On Wed, 30 Apr 2025 23:38:02 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> This change proposes to modify `java.io.File.delete()` so that regular files on Windows will not be deleted by default if their read-only attribute is set. A boolean-valued system compatibility property `jdk.io.File.deleteReadOnly` is defined to reinstate legacy behavior if desired.
Will the new property will also change behavior of java.io.File.deleteOnExit() and java.nio.file.StandardOpenOption.DELETE_ON_CLOSE? Might want to talk about that in the CSR.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/24977#issuecomment-2845018199
More information about the core-libs-dev
mailing list