RFR: 8355954: File.delete removes read-only files (win) [v4]
Brian Burkhalter
bpb at openjdk.org
Thu May 15 22:42:15 UTC 2025
> 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.
Brian Burkhalter has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains five additional commits since the last revision:
- 8355954: Simplify test
- Merge
- 8355954: Fix HashedPasswordFileTest failure due to obsolete read-only attribute being set
- 8355954: Address comments on naming in the PR
- 8355954: File.delete removes read-only files (win)
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/24977/files
- new: https://git.openjdk.org/jdk/pull/24977/files/0fef4782..352c54dd
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=24977&range=03
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=24977&range=02-03
Stats: 53700 lines in 1729 files changed: 33644 ins; 11237 del; 8819 mod
Patch: https://git.openjdk.org/jdk/pull/24977.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/24977/head:pull/24977
PR: https://git.openjdk.org/jdk/pull/24977
More information about the core-libs-dev
mailing list